#!perl -p use strict; use warnings; if ( /^\s*[#\n]/ or !s/.*{([^}]+).*$/$1/ ) { $_ = <>; last if !defined $_; redo; }
Clearly not tested on real data.
In reply to Re: Match pattern per line and after another one as multiline in single file opening
by BillKSmith
in thread Match pattern per line and after another one as multiline in single file opening
by Yakup
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |