Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Find a pattern

by elef (Friar)
on Jan 28, 2011 at 10:30 UTC ( #884777=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Find a pattern
in thread Find a pattern

To make this answer a little more helpful:
The correct expression to match "a series of 1 to 9 digits" is:
/\d{1,9}/ or /[0-9]{1,9}/ - note the comma, not dash

1 to 9 digits between 1 and 9:
/[1-9]{1,9}/

Any number of digits between 1 and 9: /[1-9]+/


Comment on Re^3: Find a pattern
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-08-01 02:56 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 (285 votes), past polls