--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:
>
> Hi Bruce,
>
> There is a problem when replace pattern is null string:
>
> win.debug("ab0cd1".replaceg(?"\d",""))
>
> which should be abcd, but produced ab0cd1.
>
> And,
>
> win.debug("ab0cd1".matchg(?"\d",?""))
>
> which should be null IMHO, but produced 01.
>
> Looks like all these are originated from allowing simply
> match("string", "pattern")
BTW, all these worked as expected:
win.debug(replaceg("ab0cd1",?"\d",""))
win.debug(matchg("ab0cd1",?"\d",""))
win.debug(matchg("ab0cd1",?"\d"))
Sean