> Wow. I'm elated by the introduction of regex support in
> ^$StrReplace()$. Thank you, Eric, for granting my primary wish!
You're welcome :)
> I notice that absence of option A doesn't seem to prevent swapping of
> all matches. For example, if the task were to replace only the first
> occurence of repeated characters:
> ^!Set %x%=foo bar baa ^!Set %x%=^$StrReplace("(.)\1";"$1";"^%x%";R)$
> ^!Prompt ^%x%
> My output* is "fo bar ba" instead of anticipated "fo bar baa." Plain
> literal replacements don't heed the absence of A for me either.
This issue is now fixed in update #3.