in reply to RegEx on more than one line

You could slurp the whole file; then one regex will do:

local $/; while (<>) { while (/^name\n-+\n(.*)/mg) { # stuff you want is in "$1" } }

update: added "g" flag.

    -- Chip Salzenberg, Free-Floating Agent of Chaos