quick help with regexp?

Jan 27, 2010 at 5:56pm

quick help with regexp?

hi,
i’m trying to split up a filename into it’s parts which should be a matter of seconds for someone who is familiar with perl but to me this regexp-syntax is a complete mystery… could please someone give me a hand with this?

my files are named xx_yyyy.mov where xx is a number and yyyy the framecount. in the end i need the framecount as integer so basically i need something like “strip away .mov and then take the last 4 characters”.

04_0576.mov > 0576

pleeeeaaaaase! :)

#48066
Jan 27, 2010 at 6:13pm

hi,

a quick and dirty solution :

– Pasted Max Patch, click to expand. –

g

#172853
Jan 27, 2010 at 6:19pm

might be dirty but i’m really happy. works perfectly. thank you so much!

! :)

#172854
Jan 28, 2010 at 1:17am

Just a bit neater. Nice [combine] trick, I wouldn’t have thought of using it to do that.

lh

– Pasted Max Patch, click to expand. –
#172855

You must be logged in to reply to this topic.