Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^5: About a piece of codeby JadeNB (Chaplain) |
on Aug 05, 2009 at 21:57 UTC ( [id://786239]=note: print w/replies, xml ) | Need Help?? |
I think that, since the common regex wisdom involves replacing a literal space in an /x-modified regex with \s, it's easy to think of \s as a replacement for a literal space—but, if you actually want a literal space (rather than just a single whitespace character) in such a regex, but outside a character class, then what you want is '\' (i.e., an escaped space).
In Section
Seekers of Perl Wisdom
|
|