brucexs wrote:
> global bbb
> win.debug(re.create("abcd").fullmatch("abcd","bbb"))
> win.debug(bbb)
This is wrong. Remember you must use the right number of variables?
Well, since you're not capturing anything, there's nothing to put in
your bbb variable and fullmatch will fail. If you use the right number
of variables, it works (for me anyway).
Still, it would be nice if we could fix it. Do you know if this works
because PP is only sending one arguments to your code or if it works
because it's sending an empty string:
win.debug(re.create("abcd").fullmatch("abcd",""))
If it's sending an exmpty string, then fixing this should solve the issue:
> I noticed that for some reason there is an s[].assign in the for loop
> which sets n before calling fullmatch/partialmatch. That should not be
> there.
But you still need to initialise the string somehow, right? Does this:
string s[MAX_STRINGARGS];
actually initialise MAX_STRINGARGS strings? If so, we can remove the
whole for loop, right?