When I try the flag 1 to have the matching pattern in an array, that's doesn't walk on Win XP SP2
$stest="Bonjour monsieur, untel untel"
$sPattern = "untel"
$nflag="1"
$stest1= StringRegExp($stest, $sPattern,$nflag)
Msgbox(0,"",@extended)
MsgBox(0, "Regular Exp[b][/b]ression Replace Test", StringRegExpReplace($stest, $sPattern, "toto"))
Msgbox(0,"",$stest1)