in reply to Help with Multiple line RegEx

or, if you can slurp the whole file, just use a single regex...
my $data = join("\n", <DATA>); while ($data =~ /-+ show (\S+) -+\s(.*?)\s\*{40}/sg) { print "switchname $1\n"; print "data $2\n"; }
---
my name's not Keith, and I'm not reasonable.

Replies are listed 'Best First'.
Re^2: Help with Multiple line RegEx
by blackadder (Hermit) on Oct 10, 2005 at 11:35 UTC
    this is kool too. But I thought the \* is {66}! Anyway,...Thanks alot
    Blackadder