Quick regexp question about %

Dec 11, 2009 at 2:52pm

Quick regexp question about %

I’m trying to replace all the occurences of %20 in a string. However i’m having difficulty entering the % character. I have tried “%20″, “%20″, %%20, “%%20″ and pretty much every other combination apart from the right one! Any ideas?


Dec 11, 2009 at 3:09pm

Okay sorry ive got that one…my new problem is replacing the “” character.

Dec 11, 2009 at 4:46pm

Cracked both of those (after an hour of solid fiddling), but now but when I replace %20 on a string that has more zeros after the 0 in %20 (e.g. %200089kick.wav”) the zeros are all removed -> “89kick.wav”. How can I stop this? Any hints would be most appreciated.


Dec 11, 2009 at 8:23pm
– Pasted Max Patch, click to expand. –

Best, J

Dec 12, 2009 at 9:20pm

works perfectly. cheers!


You must be logged in to reply to this topic.