Forum Moderators: phranque
[1-4,80,100]+ allows the digits 1 to 4, a comma, the digits 8 and 0, to appear in any order and any amount of times, as long as the whole thing contains at least one character. 00004,,,88,,1111" would successfully match this pattern (1|2|3|4|80|100) instead. [10-40] will match any single digit from 0 to 4. It might throw an error on the way, as the 0 is repeated, and the 1 is also within the 0-4 group. [5-9] will match any single digit 5 to 9. [1-3][0-9]|40 would do it. That might also simplify to [1-3]\d|40. [5-9]|2 simplifies to [25-9]. [135] and [1-5] notation, you also need to look at the + and * modifiers and the {3} notation.