Displaying page
of
pages;
Items to
Title |
Test
Details
Number Range
|
Expression |
^((0|[1-9]+[0-9]*)-(0|[1-9]+[0-9]*);|(0|[1-9]+[0-9]*);)*?((0|[1-9]+[0-9]*)-(0|[1-9]+[0-9]*)|(0|[1-9]+[0-9]*)){1}$
|
Description |
Matches any range of numbers according to the format x;x-xx where "x" is a number between 0 and 9, however 0 may not be a the starting digit of a multi-digit number (i.e. 001). The format specifies that a range is denoted by x-x (numbers are seperated by a hyphen) and multiple range specification or single numbers may be seperated by a semi-colon ";".
|
Matches |
0 | 0-3 | 1;2 | 1;2-3 | 2-3;10 | 1-2;3-40
|
Non-Matches |
1; | 2-3; | a;1 | 2-3;a | 001-3 | 1-003
|
Author |
Rating:
Dexxter Quant
|
Displaying page
of
pages;
Items to