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
Or this is also the correct answer.
/(?!2)\d/