MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: matching tb



cricket writes:
> #397:take_command, line 8:  Resource limit exceeded
> 
> #397:"take_command" (cmd)
>  8:  if (m = match(cmd, "^%(please %)? *%(I want %|give me %|gimme %|bring me
>  %) *%(a %|an %)? *%(glass of %|cup of %)?+%([^,]+%)%(, *please%)?$"))
                                            ^
					    |

This plus sign, coming right after a question mark, is pretty odd and almost
certainly not what you want.  I think you probably want to replace it by ` *'.
That may fix your problem.

	Pavel


References:

Home | Subject Index | Thread Index