I need a regular expression pattern that matches any number including 1-9 numbers except 2?
My attempt:
([1-9][^2])
But this doesn\'t w
You can match the range of numbers before and after two with [0-13-9], like this:
[0-13-9]
"4526".match(/[0-13-9]+/) ["45"] "029".match(/[0-13-9]+/) ["0"] "09218".match(/[0-13-9]+/) ["09"]