|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^2: Problems with a regex?by hbm (Hermit) |
| on Aug 14, 2012 at 15:59 UTC ( #987391=note: print w/ replies, xml ) | Need Help?? |
|
To /^\Q$stack\E$/ (emphasis on the \E). And to the OP, note that your first RE can be simplified:
No need to escape quotes; nor to match beyond what you are interested in. (I often see REs with a useless .* at the end.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||