--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "Sheri" <sherip99@> wrote: > > > > --- In [email protected], "brucexs" <bswitzer@> wrote: > > > > > I also don't understand how extract is supposed to work. > > > > local num=re.create(pat).Extract(myreplace, "s", "out") > > Try plain s, not "s". MY understanding is that this argument is not > supposed to change, hence it is called without quotes. > > In the test script I posted, I forgot to escape the \. > > Does it work the right way if you just plain s? How about if > myreplace is *\0*? Or is that the same as *\1* since there is only > one match? >
Yes, it does indeed work if I use plain s instead of quoted s in the argument for extract. \1 and \0 both give *yabba* now (as it should since my parentheses surround the entire pattern). Regards, Sheri
