simple regexp problem. what am i forgetting?

Sep 2, 2011 at 11:32pm

simple regexp problem. what am i forgetting?

i can’t get this simple regexp thing to work, it’s part of a more complicated expression. i used to understand how greedy/lazy stuff is related, but why isn’t this working. thanks for any help.

– Pasted Max Patch, click to expand. –
#58742
Sep 3, 2011 at 9:36pm

The ? after (TEST) shouldn’t be there. I would use rather | as in the following patch.

cheers,
yp

– Pasted Max Patch, click to expand. –
#211149
Sep 4, 2011 at 4:33pm

thanks! didn’t even think about using the “or” like that.

#211150

You must be logged in to reply to this topic.