I want to split sentences by a specific char but just if this char isnt used as a part of a word that is contained in an exclusion list. For example I want to split the sentence by a fullstop “.” but I just if its not used after “Dr” or “Prof”. For example:
“Im a Dr. of Physics and my Name is Sheldon Cooper. Im working at the University of Pasadena.”
So the regex should just split by the fullstop after “Cooper” but not after the “Dr”.
You can use negative lookbehind: