I'm looking to allow the inequality operator, but disallow the special character '!' on its own.
Maybe I can use two regular expressions, /!=/ and /!/. I want to test for /!/ if it is alone - and output an error if it isn't accompanied by an equal sign. The issue is that /!/ will test true if the input is '!='. Thoughts?
Input: "!= !"
Expected Output: "Token '!=' Found
Invalid Character '!' Found