J
Johnny Williams
I'm struggling to create a regular expression for use with VB .Net which
matches a person's name in a string
of words.
For example in "physicist Albert Einstein was born in Germany and"
I want to match "Albert Einstein"
In "scientist Sir Isaac Newton wrote the Philosophiae Naturalis Principia
Mathematica"
I want to match "Sir Isaac Newton"
In all cases the names are capitalised and the first word in the string
starts with a lower case character and the first word after the name starts
with a lower case character.
A regex which matches from the first uppercase character to the first
lowercase character preceded by a space would work, but all my attempts have
so far failed!
Thanks for any help.
matches a person's name in a string
of words.
For example in "physicist Albert Einstein was born in Germany and"
I want to match "Albert Einstein"
In "scientist Sir Isaac Newton wrote the Philosophiae Naturalis Principia
Mathematica"
I want to match "Sir Isaac Newton"
In all cases the names are capitalised and the first word in the string
starts with a lower case character and the first word after the name starts
with a lower case character.
A regex which matches from the first uppercase character to the first
lowercase character preceded by a space would work, but all my attempts have
so far failed!
Thanks for any help.