In MS, the {} pair is interpreted as a complex function.
In some cases, it's not desirable.
For example, {n,m} is interpreted as a range in RegEx.
Gosub>F&R,^13{2,0},,W
In this case, F&R_Var_1 is wrongly interpreted by MS.
Currently I circumvent the restriction by:
Let>Str=^13{2,0}
Gosub>F&R,%Str%,,W
No, Gosub>F&R,{"^13{2,0}"},,W won't help in this case.
QUESTION
Does MS support escape (meta)characters for {}?
Thanks in advance.
Escape {}
Moderators: JRL, Dorian (MJT support)
Oops. Sorry I didn't look closely enough. The problem isn't the brackets, the problem is the comma. The comma is a parameter delimiter unless you use a variable as a substitute. Try this:
Code: Select all
Let>comma=,
Gosub>F&R,^13{2%comma%0}
// Find & Replace
SRT>F&R
MDL>F&R_Var_1
End>F&R
Hi JRL,JRL wrote:Oops. Sorry I didn't look closely enough. The problem isn't the brackets, the problem is the comma. The comma is a parameter delimiter unless you use a variable as a substitute. Try this:Code: Select all
Let>comma=, Gosub>F&R,^13{2%comma%0} // Find & Replace SRT>F&R MDL>F&R_Var_1 End>F&R
Your magnificent solution relieves all pains in my neck.
Yeah, the comma is the culprit.
BTW, %comma% is a built-in variable.
Gosub>F&R,^l{1%comma%},^13,W
Gosub>F&R,^13{2%comma%},^13,W
I offer my mea culpa for being ignorant in not identifying the comma as the troublemaker in the first place. Again, it's my fault.
It reminds me that I still have much to learn.
Thanks for your help.
Have a nice weekend.