Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: little regex question

by VGavara (Novice)
on Aug 01, 2013 at 10:51 UTC ( #1047421=note: print w/ replies, xml ) Need Help??


in reply to Re: little regex question
in thread little regex question

Just note the difference between these two regular expressions:

[^a]at

Your regex, will match any expression with three characters where the first one is not 'a' and the rest is 'at'

[^a]?at

The regex you would expect, will match any expression ending with 'at' and starting AT MOST (repetition operator ?) by any character not being 'a'

Not the suitable place to post it since it seems I'm answering to Loops, sorry. The response was directed to anaconda


Comment on Re: little 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://1047421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2014-07-28 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (200 votes), past polls