# matching tb

Pavel Curtis (pavel@parc.xerox.com)
Fri, 22 Dec 1995 15:57:45 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    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