I have a list of valid numbes which looks like this:
50, 56, 62, 68, 74, 80, 86, 92, 98, 104, 110, 116, 122, 128, 134, 140, 146, 152, 158
I need an regular expression which allows every number in this list, but nothing else. This regex is used to validate a HTML5 input control. A few examples for clarification:
50 => true
150 => false
abc => false
51 => false
110 => true
11 => false
50, 56 => false
I have tried this expression, but the problem is that numbers like 156 and 150 also get matched.
50|56|62|68|74|80|86|92|98|104|110|116|122|128|134|140|146|152|158
Can anyone help me out?