Trying to do a batch rename, can't figure out the proper RegEx

Posted by trezy on Ask Ubuntu See other posts from Ask Ubuntu or by trezy
Published on 2012-10-21T16:12:30Z Indexed on 2012/10/21 17:19 UTC
Read the original article Hit count: 489

Filed under:
|
|

I'm trying to rename my movie collection. All of the files are currently named using dots instead of spaces, i.e. Men.in.Black.avi. I want to replace all of the dots with spaces which isn't terribly difficult, but I need to preserve the last dot for the file extension, i.e. .avi, .mp4, .ogg, etc.

My Googling has provided no solutions. I'm also a Javascript developer and could see some snazzy applications for it. So, any suggestions?

© Ask Ubuntu or respective owner

Related posts about rename

Related posts about regex