- May
- 13,141
- 180
The help says
The default actually seems to be FALSE. Below, the search criterion spans three lines so DotMatchesNewLines is desired.
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:\>