How to stip .mov using sprintf

Jun 22, 2013 at 12:34am

How to stip .mov using sprintf

I want to remove the file name ending from a video file:

my_movie_file_name.mov

I assume i need to use sprintf to remove the .mov

see patcher.

what would the syntax in sprintf be?

<code>

– Pasted Max Patch, click to expand. –

</code>

#253696
Jun 22, 2013 at 2:29am

Hi,

I guess you should try [regexp] for this. Even if you don’t know how to write regular expressions, a Google search will give you the right expression to strip the extension from a filename.

HTH,
Ádám

#253702
Jun 22, 2013 at 2:45am

Thanks, I’ll try this

#253705
Jun 23, 2013 at 11:57am

here are two ways to do this :
- one with [atoi] and one with [regexp]:

<code>

– Pasted Max Patch, click to expand. –

</code>

#253801
Jun 23, 2013 at 1:26pm

I thank you so much. !!!!

#253809

You must be logged in to reply to this topic.