http://www.perlmonks.org?node_id=884777


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]+/