Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Regex for last digit should not be "2"

by tobyink (Abbot)
on Aug 06, 2012 at 07:14 UTC ( #985620=note: print w/ replies, xml ) Need Help??

in reply to Regex for last digit should not be "2"

You've already received two suggestions meaning "not 2". Here's what the difference between them is:


This means "either 0, or 1, or anything between 3 and 9".


This means "anything other than 2", so while it would not match "2" it would match non-numeric characters like "x".

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Comment on Re: Regex for last digit should not be "2"
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-11-28 03:32 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls