N
Neil
Hello:
I have come up with a scenario where I need to form a regex that does
not match
either of two strings.
For example, I want the regex to match anything besides cat and dog,
horse
should yield a match, pig should yield a match, etc.
I tried this:
[^(cat|dog)]
but that did not work.
Any ideas?
Thanks,
Neil
I have come up with a scenario where I need to form a regex that does
not match
either of two strings.
For example, I want the regex to match anything besides cat and dog,
horse
should yield a match, pig should yield a match, etc.
I tried this:
[^(cat|dog)]
but that did not work.
Any ideas?
Thanks,
Neil