This sounds simple but my regex knowledge is limited.
I need an expression to match a decimal number or the string “all”, as in a range validator that allows the word all represent the max range.
I thought something like this might work:
((^[-+]?\d*\.?\d*)|any)
But the above doesn’t work for “any”.
try this