Is there a limit on a regexps subsitute?

Jun 4, 2011 at 7:00pm

Is there a limit on a regexps subsitute?

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

#57449
Jun 4, 2011 at 7:36pm

You can easily do that with [zl delace].

– Pasted Max Patch, click to expand. –
#205860
Jun 4, 2011 at 7:48pm

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. –
#205861
Jun 4, 2011 at 8:47pm

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,
cheers,
Johannes
http://www.mdw.ac.at/zimt/
http://www.johanneskretz.com

#205862
Jun 4, 2011 at 10:14pm

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

Cheers mate

#205863

You must be logged in to reply to this topic.