in reply to RegEx on more than one line
When you find what you are looking for, read the next couple lines and dump the one's you don't want.
while (<>){ if (/name/) { <>; #reads the line of dashes $whatIwant=<>;#grabs the next line "This is What I..." print $whatIwant; } }
|
|---|