Documentation TPIPE, /perl, DotMatchesNewLines

May 20, 2008
12,167
133
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:\>
 

Similar threads