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