|
|
| Just another Perl shrine | |
| PerlMonks |
Re: How to use \W in Regular Expression?by gube (Parson) |
| on Dec 30, 2009 at 15:25 UTC ( #814955=note: print w/ replies, xml ) | Need Help?? |
|
\W means Match non-word character. As almut said its not required for replace what you are trying to do. Just s/$query/<em>$query</em>/i would be fine. Perl regex
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||