More of the same, but
local $/; my $text = <DATA>; my ($number, $from) = $text =~ /mailbox (\d+).*?From:\s*([^\n]+)/;
It might be more efficient to replace the .*? with .*. Both will work.
In reply to Re: A little regex help please!
by ikegami
in thread A little regex help please!
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |