Hi!
Sorry for what might be a trivial question, but I've been struggling with this for hours. I have a series of audio files of the following type:
20120804 192127 thaw (acoustic take 1).m4a
The first 8 digits are the date, then the time (unimportant), and then the title.
I'd like to know if there is an algorithm to insert the first 8 digits (ie the date) within the bracket, like this:
20120804 192127 thaw (20120804 acoustic take 1).m4a
Ideally this would be done in search/replace by searching for "(" and replacing it with "([N1-8]" but that doesn't work, or at least I haven't found a way to make it work.
If anyone could help it would be much appreciated. Thanks!
file rename help - add text within brackets
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 2
- Joined: 2012-10-05, 15:24 UTC
Regular expressions can help. Search for:
Replace with:
And don't forget to check RegEx.
Code: Select all
^(\d{8})([^\(]+)\(
Code: Select all
$1$2($1
Re: file rename help - add text within brackets
Use regex Expression:idealcrash wrote:Hi!
Sorry for what might be a trivial question, but I've been struggling with this for hours. I have a series of audio files of the following type:
20120804 192127 thaw (acoustic take 1).m4a
The first 8 digits are the date, then the time (unimportant), and then the title.
I'd like to know if there is an algorithm to insert the first 8 digits (ie the date) within the bracket, like this:
20120804 192127 thaw (20120804 acoustic take 1).m4a
Ideally this would be done in search/replace by searching for "(" and replacing it with "([N1-8]" but that doesn't work, or at least I haven't found a way to make it work.
If anyone could help it would be much appreciated. Thanks!
Code: Select all
Search for :^((\d{8})\s\d{6})([^\(]+)\((.*)\)$
Replace with: $1$3($2 $4)
Verify that [E] is not selected
That should do it.
$1 is date + Time
$2 is Date
$3 is title
$4 is album or whatever inside ()
--Edited Sob was faster

-
- Junior Member
- Posts: 2
- Joined: 2012-10-05, 15:24 UTC