I can use "Alternation" in the regex to match any "cat" or "dog" situation:
(cat|dog)
Is it possible for NEGATE to interleave and match anything that is not "cat" or "dog"?
If so, how?
Example:
Let's say I'm trying to get closer to END OF SENTENCE in English like this.
To Wit:
(\.)(\s+[A-Z][^.]|\s*?$)
In the following paragraph:
A quick brown fox jumps over a lazy dog. Once upon a time, Dr. Sanchez, Mr. Parsons, and Governor Mason went to the store. Hello World
I incorrectly find the "end of the sentence" from the doctor, Mr. and Governor.
(I am testing using http://regexpal.com/ if you want to see what I see with the above example)
, - :
!(Dr\.|Mr\.|Gov\.)(\.)(\s+[A-Z][^.]|\s*?$)
, , .
! /(Dr. | Mr. | Gov.)/, ! ~, .
"", "-", "Gov." ..?
.