|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^2: Regex: Searching for a string with special charactersby Hofmator (Curate) |
| on Nov 03, 2006 at 10:26 UTC ( #582045=note: print w/ replies, xml ) | Need Help?? |
|
And another option is to use the qr/$string/ syntax, which you can find in perlop. Just a small annotation. This is only correct if it is supposed to be a general comment. The qr/$string/ construct has no influence on the escape issue whatsoever. For the escaping see also quotemeta. -- Hofmator Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||