local $/; while (<>) { while (/^name\n-+\n(.*)/mg) { # stuff you want is in "$1" } }
update: added "g" flag.
-- Chip Salzenberg, Free-Floating Agent of Chaos
In reply to Re: RegEx on more than one line
by chip
in thread RegEx on more than one line
by jmaya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |