Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Documentation TPIPE, /perl, DotMatchesNewLines

May
12,998
174
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

Back
Top