Whenever I Google "perl greedy" I find that Perl is greedy by default and that the modifier "?" will make it non-greedy. TPIPE's default Perl settings are backwards. Is that something TCC has any control over?
That doesn't set any defaults; it only affects the current command (and, if the help is correct, only the immediately preceding TPIPE filter). And typing "?" is considerably easier than typing "/perl=4096,1,0,1" and accomplishes the same thing (see below). I was hoping for a once-and-for-all change; an INI option would suffice.
Code:
v:\> echo a b | tpipe /replace=4,0,0,0,0,0,0,0,0," +","\n" /perl=4096,1,0,1
a
b
v:\> echo a b | tpipe /replace=4,0,0,0,0,0,0,0,0," +","\n"
a
b
v:\> echo a b | tpipe /replace=4,0,0,0,0,0,0,0,0," +?","\n"
a
b
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.