in reply to Re: Range of numbers
in thread Range of numbers
Since the previous millennium, Perl has supported Unicode in some way or another. Which means that while [0-9] matches 10 characters, \d matches many more. Several hundreds of different characters in 5.10. Your suggested pattern,
matches 333, 33۳ and 3۳3, but not ۳33 (۳ is Arabic 3)./^(2[5-9]\d|[3-6]\d\d|7[0-2]\d|730)$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Range of numbers
by psini (Deacon) on Oct 10, 2008 at 21:02 UTC |