Possible to strip names and addresses from paragraphs?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
idotcom
Forum Commoner
Posts: 69
Joined: Thu Mar 04, 2004 9:24 pm

Possible to strip names and addresses from paragraphs?

Post by idotcom »

Hi all.

I was wondering if anyone had any ideas on how to strip names and addresses from paragraphs. I am pretty sure the only way would be with expressions, but I cannot think of a way to go about it. This is probably something thats going to require pretty complex pattern matching expression(s). If anyone has any ideas, please... let me know.


The problem is that they are not really consistent in format. Here are some examples of the types of paragraphs. Now I've changed the actual names and addresses, but the formatting is the same.


************************************

In the Matter of the Estate of Jane May Doe [X] an Adult
NOTICE IS GIVEN THAT:
1. PERSONAL REPRESENTATIVE: Jomax Doe (name) has been appointed Personal Representative of this Estate on November 18, 2004 (date). My address is: 2156 W. Krans Ave, City, AZ 85222
2. DEADLINE. All persons having interest in the Estate are required to present within four months after the date of the first publication of this Notice.
3. NOTICE: must be presented by delivering or mailing a written statement to the Personal Representative at (address) 2156 W. Krans Ave, City, AZ 85222
4. NOTICE OF APPOINTMENT. A copy of the Notice of Appointment is attached to the copies of this document mailed.
DATED: 11-5-04
Personal Representative
James Doe
Print Name
Published: November 12; December 6, 15, 2004

******************************************

NOTICE OF APPOINTMENT OF PERSONAL REPRESENTATIVE
Janit M Doe, GBN 00655, GRYMMSON & GOLDMANN, P.C., 12354 North Kayerland Boulevard, Suite 355, City, Arizona 59555, (555) 555-5555, Attorneys for Personal Representative.
THE COUNTY
In the Matter of the Estate of JAMES M DOE, Status.
NOTICE IS GIVEN THAT:
1. Jannette Doe has been appointed Personal Representative of this Estate on November 8, 2004.
2. Deadline. All persons for the Estate are required to present within four (4) months after the date of the first publication of this Notice.
3. Notice must be presented by delivering or mailing a written statement of the Personal Representative, Jannette Doe, c/o GRYMMSON & GOLDMANN, P.C., Attn: Jane M Doe, Esq., 12354 North Kayerland Boulevard, Suite 355, City, Arizona 59555.
DATED: November 9, 2004. HYMSON & GOLDSTEIN, P.C., By: /s/ Jane M Doe, Esq., 12354 North Kayerland Boulevard, Suite 355, City, Arizona 59555, (555) 555-5555, Attorneys for Personal Representative.

************************************************

If you can do this or for a fee, let me know aswell.

Thank you in advance. :D
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

It would be hard unless you had a list of the names or something that would be similar in all cases. You could easily match telephone numbers, states, zip codes etc, but to ensure you found ALL the names would be near impossible unless you had some very good AI.
Post Reply