Regex replacements (\1, \2) not matching

James At The Hale james at thehales.id.au
Sun Nov 11 09:17:01 EST 2018


Kaveh,

You are not missing anything.
LC’s implementation of REGEX is.
It can’t use back referencing in replacement strings.

> What am I missing? I put in message box:
> put replacetext("one two", "(.+) (.+)", "\2 \1")
> I get result:
> "\2 \1"
> rather than:
> "two one"

James




More information about the use-livecode mailing list