Documentation TPIPE, /perl, DotMatchesNewLines

May 20, 2008
10,637
82
Syracuse, NY, USA
The help says

TPIPE - Text filtering, search, and substitution
DotMatchesNewLines - Allow the '.' operator to match all characters, including new lines. Default is true.
The default actually seems to be FALSE. Below, the search criterion spans three lines so DotMatchesNewLines is desired.

Code:
v:\> type tag.html
before
<body>
inside
</body>
after

v:\> tpipe /input=tag.html /replace=4,0,0,0,0,1,0,0,0,"(<body>.*</body>)","$1"

v:\> tpipe /input=tag.html /replace=4,0,0,0,0,1,0,0,0,"(<body>.*</body>)","$1" /perl=,,,0

v:\> tpipe /input=tag.html /replace=4,0,0,0,0,1,0,0,0,"(<body>.*</body>)","$1" /perl=,,,1
<body>
inside
</body>
v:\>