Could anybody help me with regular expression as mentioned.
I have an xml element ‘docs’ which has an attribute ‘range’ where range should take only values in the below format.
range = “1,2,3,4,5”
or
range = “1,2,3-6,10-12,15,20-30”
or
range = “all”
A littel help will be much appreciated.
Thanks in advance.
Should work for your numbers. Input can only be numbers, commas, or dash or the word
all.http://regexr.com?30p7f