Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Regex

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


bbaker at copesan

Aug 9, 2013, 2:35 PM

Post #1 of 4 (22 views)
Permalink
Regex

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<mailto:cstephan [at] copesan>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"


bbaker at copesan

Aug 9, 2013, 4:05 PM

Post #2 of 4 (22 views)
Permalink
Re: Regex [In reply to]

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<mailto:cstephan [at] copesan>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"


bbaker at copesan

Aug 9, 2013, 4:37 PM

Post #3 of 4 (21 views)
Permalink
Re: Regex [In reply to]

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<mailto:cstephan [at] copesan>
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'
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<mailto:cstephan [at] copesan>
www.copesan.com<http://www.copesan.com/>
"Servicing North America with Local Care"


presnypreklad at gmail

Aug 10, 2013, 2:11 AM

Post #4 of 4 (14 views)
Permalink
Re: Regex [In reply to]

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

Really, I would think that regex questions (especially if there are
going to be lots of them) will be considered off-topic here.

Have you considered asking your question at stackoverflow.com?
(Suggestion: tag your question "perl" and "regex" and specify whether
you want your regex to work on just this one string, or in general on
a class of strings.)

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.