in reply to Re: matching and mysterious captures
in thread matching and mysterious captures
echo -e 'zero\none\ntwo three' | perl -0777 -pe 's{\s*(one\ntwo)\s* +^( *)}{\n\n<begin block>\n\n$1\n\n<end block>\n\n$2}m' zero one two three
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: matching and mysterious captures
by kennethk (Abbot) on May 05, 2011 at 18:00 UTC | |
by Allasso (Monk) on May 05, 2011 at 18:51 UTC |