Quick regexp question about %

Brico's icon

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?

Thanks,
Rob

Brico's icon

Okay sorry ive got that one...my new problem is replacing the "" character.

Brico's icon

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.

Cheers,
Rob

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

Best, J

Brico's icon

works perfectly. cheers!