Regexp (delete alphanumerical caractere but not all of them)

Feb 26, 2013 at 5:54pm

Regexp (delete alphanumerical caractere but not all of them)

Hi !

I’m not sure my title of really clear,

I’m treating a sequence of PNG image with maxmsp and my name files often look like that :

bliblablo0001.png,
bliblablo0002.png,
bliblablo000x.png…

but if I have a another version of bliblablo I will call it bliblablo2 and then I will have :

bliblablo20001.png,
bliblablo20002.png,
bliblablo2000x.png…

SO, I would like to isolate that name ‘bliblablo’ or ‘bliblablo2′ knowing than my files alwayz end by the four digits of the frame number.

I’m trying to doin it with Regexp because I know it is able to do it, I’ve already that little patch, I know I’m near but for the moment it delete all the digit :

– Pasted Max Patch, click to expand. –

I tried to search a bit on the forum before because i’m sure a prob like this as been already solved but with regexp that’s hard to search, sorry then and thank for your help !

#66746
Feb 26, 2013 at 6:34pm

Hi,

?

– Pasted Max Patch, click to expand. –
– Pasted Max Patch, click to expand. –
#240179
Feb 27, 2013 at 5:31am

I’ve just added a [unpack] just after your first patch and that was what I was searching for, thank you nicolas !

#240180

You must be logged in to reply to this topic.