Tuesday, 27 August 2013

Regular expression for double equals

Regular expression for double equals

Anyone have a good regex to match == and != but NOT === and !== (I'm
planning to use it as a simple check on javascript code).
I tried [^=]==[^=] but this fails at the start and end of strings.

No comments:

Post a Comment