I have a bit of RegEx I am trying to figure out: ( of [A-Za-z ]+)?
The above portion of my Regex will match the following:
of New Mexico and Mrs Smith.
What I am trying to do is have the RegEx stop before and
.
( of [A-Za-z ]+)\sand?
The above RegEx is very close to solving the issue however it still matches and.
The above matches:
of New Mexico and
I want it to output:
of New Mexico