mhearse has asked for the wisdom of the Perl Monks concerning the following question:
My code doesn't work:body: Here is an example of a multi-line section of text that I'm trying to grab. attachment:
Can someone offer a solution?if ($line =~ /^body: (.*)^attachment:/mi) { $vars{body} = $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiline regex
by haoess (Curate) on Oct 27, 2006 at 18:36 UTC | |
by chargrill (Parson) on Oct 27, 2006 at 18:56 UTC | |
|
Re: Multiline regex
by smokemachine (Hermit) on Nov 08, 2006 at 00:46 UTC |