Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Regex question

by pokki (Scribe)
on May 18, 2010 at 13:52 UTC ( #840521=note: print w/ replies, xml ) Need Help??


in reply to Regex question

If you are trying to match on 'mu' not preceded by 'a', you should be able to use a negative look-behind assertion: /(?<!a)mu/

If you are trying to match on 'mu' on its own, not in the middle of a word, use boundaries : /\bmu\b/


Comment on Re: Regex question
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2014-07-31 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (246 votes), past polls