Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047421]
help
Chatterbox?
[LanX]: some servers were lagging today, so I suppose the root cause
[LanX]: ambrus no recent patches
[Petroza]: no i haven't posted anything before. It was a more or less long question with a specific issue. I did post a title and the links i added where only part of the element i was searching within the code (so no purpose other than the question itself).
[1nickt]: Petroza can you go back in your browser to the preview screen, redact the links, and try to submit again?
[LanX]: copy and paste the text into your Petroza's scratchpad please
[Petroza]: yes I'll do that. instead of the url I'll write "link"
[LanX]: darn my pc is restarting for updates

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-10-17 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (233 votes). Check out past polls.

    Notices?