Documentation TPIPE, /perl, DotMatchesNewLines

May 20, 2008
11,192
94
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:\>
 
Thread starter Similar threads Forum Replies Date
samintz Support 3
R Support 2
Kachupp Support 4
H Support 11
vefatica Support 1