>clear >lcstring = "RGB(123,124, 125, 126, 127, 128)" >? lcstring >oRE = CREATEOBJECT("VBScript.RegExp") >oRE.Pattern = "(\d+)\, (\d+)\, (\d+)\, (\d+)\, (\d+)\, (\d+)" >? oRE.Replace(lcstring, "$4, $5, $6, $1, $2, $3") >>
>clear >lcstring = "RGB(123, 124, 125, 126, 127, 128)" >? lcstring >oRE = CREATEOBJECT("VBScript.RegExp") >oRE.Pattern = "(\d+)\, (\d+)\, (\d+)\, (\d+)\, (\d+)\, (\d+)" >? oRE.Replace(lcstring, "$4, $5, $6, $1, $2, $3") >Yeppers, they sure. It's a simple matter, however, to use STRTRAN() to remove them in the original string and...
clear lcstring = "RGB(123, 124, 125, 126, 127, 128)" ? lcstring lcstring = STRTRAN(lcstring, " ", "") oRE = CREATEOBJECT("VBScript.RegExp") oRE.Pattern = "(\d+)\,(\d+)\,(\d+)\,(\d+)\,(\d+)\,(\d+)" ? oRE.Replace(lcstring, "$4,$5,$6,$1,$2,$3")