Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-05 04:58 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (60 votes), past polls