This seems to do the job:
while ( <> ) { s{ -\|-.*? # After the -|- thingy ( \d+(?:-\d+)? # A number, maybe two ) } { print $1 . "\n" }egx ; }
In reply to Re: parsing cleardiff output :(
by DamnDirtyApe
in thread parsing cleardiff output :(
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |