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

Re: Regex question

by pokki (Monk)
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/

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 pondering the Monastery: (7)
As of 2016-06-28 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (354 votes). Check out past polls.