Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: little regex question

by vinoth.ree (Monsignor)
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

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2016-10-25 20:09 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (329 votes). Check out past polls.