The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: perl newbie
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-01-2009
KevinADC KevinADC is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2008
Posts: 731
^ = beginning of string anchor
$ = end of string anchor
\b = word boundary anchor

if NAME or SELF is the only thing in the string being searched they will all work the same. But if there is more text/patterns to search for they will not as ^NAME$ and ^SELF$ mean to find that word and only that word but \bNAME\b could be part of a larger string.

perlretut - perldoc.perl.org