Pattern anchors in Perl. : Pattern matching « Regular Expression « Perl

Perl
1. Array
2. CGI
3. Class
4. Data Type
5. Database
6. File
7. GUI
8. Hash
9. Language Basics
10. Network
11. Regular Expression
12. Report
13. Statement
14. String
15. Subroutine
16. System Functions
17. Win32
18. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Perl » Regular Expression » Pattern matching 
Pattern anchors in Perl.
    
Anchor                Description 
^ or \A               Match at beginning of string only 
$ or \Z               Match at end of string only 
\b                    Match on word boundary 
\B                    Match inside word 

   
    
    
    
  
Related examples in the same category
1. Pattern Matching Operators
2. Pattern Modifiers
3. Pattern Tester
4. Pattern array
5. Pattern match
6. Pattern-Matching Operators(The syntax used to perform a pattern match on a string)
7. Pattern-matching options.
8. Patterns containing + always try to match as many characters as possible.
9. Using variables containing matched subpatterns.
10. Regular Expression Patterns
11. Regular expression character patterns
12. Regular expression metacharacters
13. Regular expression modifiers
14. Regular expression pattern quantifiers
15. Regular expression: start a string with period
16. Reversing subpatterns
17. Repeating patterns
18. Check for 'a'
19. Check for 4-8 a's
20. Check for a or b
21. Check for and remove a trailing backslash character
22. Check for leading alpha character, rest alphanumeric
23. Check for no 'a'
24. Check for white space
25. A program that illustrates the use of the matching operator.
26. /d.f/ matches d, followed by any non-newline character, followed by f
27. /de{1,3}f/ matches d, followed by one, two, or three occurrences of e, followed by f.
28. Print line unless it matches E
29. Count the match times
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.