mumbles has asked for the wisdom of the Perl Monks concerning the following question:
This prints nothing.$text = "xcystartsdhjsXYZ:joeblow@mail.cpEwrendrwerwep"; if ($text =~ /\bXYZ:\b(.*?)\b@mail.cp\b/) { $result = $1; # do something with results print $result, $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Gimmie the Stuff Between Two Keywords
by merlyn (Sage) on Oct 15, 2001 at 09:30 UTC | |
|
Re: Gimmie the Stuff Between Two Keywords
by snowcrash (Friar) on Oct 15, 2001 at 09:41 UTC | |
|
Re: Gimmie the Stuff Between Two Keywords
by pike (Monk) on Oct 15, 2001 at 14:23 UTC | |
|
Re: Gimmie the Stuff Between Two Keywords
by Mosley (Novice) on Oct 15, 2001 at 11:50 UTC |