Problems with regex

taironemagalhaes's icon

I'm having problems with regexp object. I'm trying to use it just to filter messages starting with /accxyz, but somehow it is changing the content of the string. Check the following patch, A and B seem to be the same, but when I process those strings with the zl slice operator, it produces different result in each situation.

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

taironemagalhaes's icon

I just realized I can simply use the route object to do what I want. Anyway, the question about the regex object still puzzles me.

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

It's because regexp outputs your list as a symbol. [fromsymbol] changes it back to a list and works as expected when sent to zl.slice.