Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Simple regular expression problem

by ikegami (Pope)
on Oct 03, 2005 at 14:40 UTC ( #496936=note: print w/ replies, xml ) Need Help??


in reply to Re: Simple regular expression problem
in thread Simple regular expression problem

That's won't work if string contains no digits (which the OP said was a possible input). For example, $name will be just "a" for "abdbdr".

Update: Just plain wrong.


Comment on Re^2: Simple regular expression problem
Re^3: Simple regular expression problem
by Dietz (Curate) on Oct 03, 2005 at 14:45 UTC
    Therefore he anchored the regex with $ to match until the end regardless if a digit is present or not
      Shoot, you're right. Monday morning X_X

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://496936]
help
Chatterbox?
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: (5)
As of 2015-07-03 16:41 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 (54 votes), past polls