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; }
In reply to Multiline regex by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |