in reply to Match pattern per line and after another one as multiline in single file opening
#!perl -p use strict; use warnings; if ( /^\s*[#\n]/ or !s/.*{([^}]+).*$/$1/ ) { $_ = <>; last if !defined $_; redo; }
Clearly not tested on real data.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match pattern per line and after another one as multiline in single file opening
by kennethk (Abbot) on Feb 14, 2017 at 23:44 UTC | |
by BillKSmith (Monsignor) on Feb 15, 2017 at 02:42 UTC | |
by kennethk (Abbot) on Feb 15, 2017 at 16:30 UTC | |
by Yakup (Novice) on Dec 03, 2018 at 13:14 UTC |