Welcome!

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

SignUp Now!

Documentation Doc error for @BETWEEN

May
572
4
Charles Dye,
Code:
@BETWEEN — Returns the portion of a string between two delimiters. 
...
(Exception: If you want to use a close bracket as a delimiter, escape it.)

Nope, close brackets prove not to be exceptional for this plugin.

Code:
C:\> echo %@between[[^],[6] This is line 6 of some file.]
TextUtils plugin: Missing comma

C:\> echo %@between[[],[6] This is line 6 of some file.]
6
 
Or UNMATCHED close bracket.

OTOH, these also don't work:
Code:
> echo %@between[a^],[a6] This is line 6 of some file.]
TextUtils plugin: Missing comma

> echo %@between[a],[a6] This is line 6 of some file.]
TextUtils plugin: Missing argument
 
For what it's worth my intended usage is:
Code:
set linenum=%@between[[],%@execstr[*ffind /k /m /l /t"some text"  somefile.txt]]
 
Back
Top