By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!I want a single character to be replaced by a '^'. How? This didn't work:
Code:v:\> echo %@subst[2,^^,foobar] fo^ar
TITLE %@SUBST[%i,?,%caption]
This one behaves rather oddly:
Code:v:\> echo %@subst[3,%%@char[94],foobar] foo^
What happened to the rest of the string?
I want a single character to be replaced by a '^'. How? This didn't work:
Code:v:\> echo %@subst[2,^^,foobar] fo^ar
>I want a single character to be replaced by a '^'. How? This didn't work:
>
>
> Code:
> ---------
> v:\> echo %@subst[2,^^,foobar]
> fo^ar
Using "xy" as the replacement string has similar result - 2 consecutive characters are replaced with "xy".
Based on the above result, I'd like a more explicit explanation of "boundary conditions" (i.e., when position n is not part of the string).
And I still do not see why replacing a single character in the string with the caret ^ truncates the string?