Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: little regex question

by vinoth.ree (Prior)
on Aug 01, 2013 at 09:53 UTC ( #1047408=note: print w/ replies, xml ) Need Help??


in reply to little regex question

Hi anaconda_wly

Why not 'at'?

The Perl Tutorial answers your questions as Both [...] and  [^...] must match a character

The special character ^ in the first position of a character class denotes a negated character class, which matches any character but those in the brackets. Both ... and ^... must match a character, or the match fails.


All is well


Comment on Re: little regex question
Select or Download Code
Re^2: little regex question
by anaconda_wly (Scribe) on Aug 01, 2013 at 10:13 UTC
    Thank loop and vinoth both. Yes I noticed ... must match a character in the tutorial but didn't understand ^... must match a character. Now I see. Thanks!

      What tutorial (link)?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-07-07 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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









    Results (86 votes), past polls