Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have some doubts with a regex
$data = "Subject: ABCD Details - MICHAEL NICHOLSON - **Senior Sales* (344536)"Here I want to take out the "Senior Sales" (Always separated by**&* like, **Name*)to another string for later use. Need to mention the "Subject:" also in the regex, bcoz some lines are like below,
$data = "NoSub: ABCD Details - MICHAEL NICHOLSON - **Senior Sales* (344536)"and I dont want to take it if the starting is like "NoSub" or anything else. I only want if the Starting is like "Subject:" Thats why in regex, it is necessary to mention the "Subject:" also.
Thanks Monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Question
by Ratazong (Monsignor) on Jan 22, 2013 at 11:47 UTC | |
by Anonymous Monk on Jan 22, 2013 at 15:10 UTC | |
by ww (Archbishop) on Jan 22, 2013 at 19:23 UTC | |
|
Re: Regex Question
by Matt™ (Acolyte) on Jan 22, 2013 at 11:48 UTC | |
|
Re: Regex Question
by tmharish (Friar) on Jan 22, 2013 at 14:44 UTC | |
|
Re: Regex Question
by ww (Archbishop) on Jan 22, 2013 at 14:18 UTC | |
|
Re: Regex Question
by BillKSmith (Monsignor) on Jan 22, 2013 at 14:01 UTC | |
|
Re: Regex Question
by locked_user sundialsvc4 (Abbot) on Jan 22, 2013 at 16:14 UTC |