simple regexp problem. what am i forgetting?

CowboyTakeTwo's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

yp's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

cheers,
yp

CowboyTakeTwo's icon

thanks! didn't even think about using the "or" like that.