![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Using string literal in regexpby tomazos (Deacon) |
on Jun 16, 2006 at 15:52 UTC ( #555824=perlquestion: print w/replies, xml ) | Need Help?? |
tomazos has asked for the wisdom of the Perl Monks concerning the following question:
I have a scalar string..
..and I want to incorporate it into a regular expression such that the characters of the string will be matched literally, no matter what characters they are. ie
What is the correct way to interpolate a string literal into a regular expression? Thanks, -Andrew.
Back to
Seekers of Perl Wisdom
|
|