Forums > Jitter

quick help with regexp?

January 27, 2010 | 5:56 pm

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! :)


January 27, 2010 | 6:13 pm

hi,

a quick and dirty solution :

– Pasted Max Patch, click to expand. –

g


January 27, 2010 | 6:19 pm

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

! :)


January 28, 2010 | 1:17 am

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. –

Viewing 4 posts - 1 through 4 (of 4 total)