Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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??


in reply to How to use \W in Regular Expression?

\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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814955]
help
Chatterbox?
[marioroy]: Hi karlgoethebier. Folks can comment feasibly if asking the review via a meditation (imho).
[marioroy]: karlgoethebier Ah, am not sure if tiny meditation or a cool use. ;-)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-09-24 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (273 votes). Check out past polls.

    Notices?