Forums > MaxMSP

Is there a limit on a regexps subsitute?

Jun 04 2011 | 7:00 pm


I am using [regexp id @substitute %0] on the following list:

id 223 id 224 id 225 id 226 id 227

and i want to remove the id to give the list:

223 224 225 226 227

However, its a long list and using the following regexp it seems to be limiting the output.

Anyone know whether there is a limit to this object? or perhaps another way to do same thing?



Jun 04 2011 | 7:36 pm

You can easily do that with [zl delace].

-- Pasted Max Patch, click to expand. --

Jun 04 2011 | 7:48 pm

Hi bkshepard,

Thanks for the advice. Unfortunately I already used that one and there is a limit on delace as well.

Check the patcher beneath, it cuts of around half way through.

Would love to hear any thoughts

-- Pasted Max Patch, click to expand. --

Jun 04 2011 | 8:47 pm

Here is an even simpler solution:

note, that [zl 4096 delace] can take a number as argument defining the maximum list length!

-- Pasted Max Patch, click to expand. --

Hope that helps,

Jun 04 2011 | 10:14 pm

That’s so cool DEvo. The delace limit solved it.

Cheers mate

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP