I want to write a regex to match all strings except string "ABC".
This works well on rubular ^(?!ABC$).*. But it throws a syntax error for me in the grammar file. I also tried [a-zA-Z]+!(ABC) and this also throws a syntax error. I am unable to figure out the right syntax for this. I tried to follow this tutorial http://treetop.rubyforge.org/syntactic_recognition.html, but still unable to solve this issue. Please help.
Hi
I want to write a regex to match all strings except string "ABC".
This works well on rubular ^(?!ABC$).*. But it throws a syntax error for me in the grammar file. I also tried [a-zA-Z]+!(ABC) and this also throws a syntax error. I am unable to figure out the right syntax for this. I tried to follow this tutorial http://treetop.rubyforge.org/syntactic_recognition.html, but still unable to solve this issue. Please help.