-
Why regular expression doesn’t work with bracket?
I have below codes. Why the regular expression doesn’t work with {2}? The last 2 lines should be 1b instead. How to make it work? Thanks.
"42" like "[0-9][0-9]"; // i.e. 1b "42" like "[0-9]{2}"; // i.e. 0b "42" like "[0-9]{2,2}"; // i.e. 0b
Log in to reply.