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]+/
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]+/
|
---|
In Section
Seekers of Perl Wisdom