|No such thing as a small change|
Regex matching end of sentenceby Dr Manhattan (Beadle)
|on Jan 31, 2013 at 09:12 UTC||Need Help??|
Dr Manhattan has asked for the
wisdom of the Perl Monks concerning the following question:
I need a regex to match sentences ending with a period, but it has to miss abbreviations that might occur in the middle of the sentence.
For instance if I have a sentence 'I like Mr. Smith's dog.', the regex should not only match the 'I like Mr.' part.
I tried this, but it still doesn't work.
%abbreviations is a list of known abbreviations.
%hash is where correctly matched sentences are stored
Any help would be appreciated