Reply To: GREP to find proper name BUT exclude a titles

#34324
Justin Sligh
Member

Clair,

The grep was slightly different.
(?!(Assistant|Chief)))(?=(\u\w+ \u\w+))(\u\w+ \u\w+)

It was Jongware’s initial expression with the addition of a positive lookahead.

Jongware’s is saying, look for an instance of two capitalized words in a row that do not include “Assistant” or “Chief”.

Mine would be a second Grep Style that says, look for an instance of two capitalized words only when there are two capitalized words preceding it and they don’t include “Assistant” or “Chief”. It no-breaks just the names.

Setting to “No Language” in Jongware’s original expression is a fantastic idea. That is why I love these forums. I am always learning a new trick.

This article was last modified on July 18, 2013

Comments (0)

Loading comments...