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.