Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Match the starting \>by CountZero (Bishop) |
on May 15, 2009 at 06:19 UTC ( [id://764189]=note: print w/replies, xml ) | Need Help?? |
There is no reason to escape < or >. They are not special in a regex. This is the list of the so-called meta-characters: {}[]()^$.|*+?\ If you want to match one of those you must escape it. CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In Section
Seekers of Perl Wisdom
|
|