I currently have to make a regex that matches the first words at the start of sentences. I've currently done to the point where it matches the first word at the start of the paragraph and the rest, the first words that come after ". The problem that I have here is that 'Sherwood' which is obviously a name, shouldn't be matched but is because it matches the regex which I have written. 'Capital starting letter, comes directly after . and a space'
How can I change my code to exclude the name that comes after Mr. or Dr.?
Current regex: ((^[A-Z]+[a-z]*[A-Z]*[a-z]*|(?<=\")[A-Z]+[a-z]*[A-Z]*[a-z]*)|(?<=\.\s)[A-Z]+[a-z]*[A-Z]*[a-z]*)
I've used regex101.com as a reference.