[rt-users] Regex

Bryon Baker bbaker at copesan.com
Fri Aug 9 19:37:59 EDT 2013


Sorry back to the drawing board does not work if the city is two words.

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bbaker at copesan.com<mailto:cstephan at copesan.com>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"

From: Bryon Baker
Sent: Friday, August 09, 2013 6:05 PM
To: 'rt-users at lists.bestpractical.com'
Subject: RE: Regex

Update this is what I came up with seems to work Thoughts?
Tries to anchor begin of line but found it is white space.
/\s{10}([\w{2},]+),\s*(\w{2})\s*(\d{5})/

Ok this question is to the regex experts
I have this email content and I want returned to me the City.

116 Walker Ave.
Berlin Circle Plaza
West Berlin, NJ 08091
Store Contact: MICHAEL OCONNOR - SOPASM
Phone: (856)719-0335
Fax : (856)719-2216

Thanks in advance for you expert help.

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bbaker at copesan.com<mailto:cstephan at copesan.com>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130809/9297c7ab/attachment.htm>


More information about the rt-users mailing list