Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Regular expression help

by beeconn66 (Novice)
on Aug 18, 2005 at 12:49 UTC ( [id://484735]=note: print w/replies, xml ) Need Help??


in reply to Regular expression help

Wow...I wasn't expecting so many responses so fast. Great feedback monks. This should give me some things to ponder. Thanks again.

Replies are listed 'Best First'.
Re^2: Regular expression help
by beeconn66 (Novice) on Aug 18, 2005 at 18:08 UTC
    Okay...so I overcame that hurdle thanks to you guys...but now i need to find where a pattern match fails. Is it possible? For instance if i'm looking for digts and the string is 123a45 is there a way to inform the user that the pattern match is failing because of the "a"?
      you can match with m/\d+/ and if that fails you can tell the user "string contains none numerical digit" or something like that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found