I feel there should be some more elegant way to print the delimiters, but can't figure it out.. . . my $firsttime = 1; while(<IN>){ if(/Final graph set matrix/ .. /PLUTO4 finished/){ if($firstime--){ print "\nnew data set\n"; } my @gset_match = ($string =~ ([A-Z]\s\d+,\s\d+\(\s*\d+\))/g); foreach $_(@gset_match) { print TEXT "$_\n"; } } } . . .
In reply to Re: pattern matching between two specific strings
by zby
in thread pattern matching between two specific strings
by harry34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |