Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Regular Expression Help

by injunjoel (Priest)
on Nov 15, 2005 at 22:43 UTC ( #508834=note: print w/replies, xml ) Need Help??


in reply to Regular Expression Help

Greetings,
I guess you could use a character class... more of a range really.
my $full_text = "(7001) - This is some text"; if($full_text =~ /\(700[1-3]\) \- This/){ print "full_text hash the check_str\n"; }


-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2019-07-15 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?