Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Regex help

by bbaker@copesan.com (Initiate)
on Oct 02, 2013 at 16:10 UTC ( [id://1056641]=perlquestion: print w/replies, xml ) Need Help??

bbaker@copesan.com has asked for the wisdom of the Perl Monks concerning the following question:

Sorry this question may show up twice. The first was anonymous which is not how I wanted it posted. So here is my question or issue.

I have the following snippet from and email I would like to use regex to return the complete line of the address to a variable.

Service Location:

1475 E Los Angeles Ave, Simi Valley, CA, 93065, US

It appears the white space follows the address line.

Thanks in advance for the help.

Update

Thanks again

Maybe some day I will be a better user of this forum.

Sorry. Just learning

I did figure it out by using.

/Service Location:\s*(.*)$/s

Thanks again from a newbe.

Replies are listed 'Best First'.
Re: Regex help
by 2teez (Vicar) on Oct 02, 2013 at 17:18 UTC

    Please, Check the solution given to you on regex help, especially by kcott.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
Re: Regex help
by GotToBTru (Prior) on Oct 02, 2013 at 17:07 UTC
    What do you have so far? See perlre to get started if you haven't already.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1056641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found