Is there a limit on a regexps subsitute?

newtfish's icon

Hi,

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?

Cheers

N

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

You can easily do that with [zl delace].

newtfish's icon

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.

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

Would love to hear any thoughts

DJ's icon

Here is an even simpler solution:

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

note, that [zl 4096 delace] can take a number as argument defining the maximum list length!Hope that helps,
cheers,
Johannes
www.mdw.ac.at/zimt/
www.johanneskretz.com

newtfish's icon

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

Cheers mate