in reply to Applying a regular expression to a string
Try something like:
my $message_id = $1 if $message =~ m/([\w\d]+)\s+.*/;
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Applying a regular expression to a string
by Smylers (Pilgrim) on Apr 04, 2005 at 13:22 UTC |
In Section
Seekers of Perl Wisdom