I'm trying to grab all names (in: LNAME, FNAME, POSSIBLE INITIAL) in a bunch of text, I have this set of rules:
/[^OWNER NAME].*([^0-9+][A-Z]{1}[^0-9+][a-z]+[^0-9+]\, [A-Z]{1}[^0-9+][a-z]+[^0-9+])/'
What I'm trying to do is some names have "OWNER NAME" very recently in the last line or two before the name, and I -do not- want those. Only if that string isn't found in in the last line or two do I want it.
Example of a name I would -not- want to collect:
OWNER NAME (IF SAME, WRITE “SAMEâ€) ADDRESS (STREET, CITY, STATE, ZIP CODE) 5
Wu, Isabella
[code]
Example of returned strings matching current rules:
Array ( [1] => Okulich, Kathern, [2] => Broadus, Raymond, Avery )
[EDIT: the reasons I account for no numbers is because it was pulling back home addresses. also, the pattern above simply doesn't work.]