• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Fun with mp3 tagging: A success story

Eos

Diamond Member
Like most normal people, I fret if the case is not exactly correct on my song files. a, an, the, and, but, or, nor, for, yet, so, as, at, by, for, in, of, to, and from need to be lower case, unless at the start or end of a title.

I have Bulk Rename Utility, but I couldn't figure out how to achieve what I wanted, so I turned to Mp3Tag.

I did have to fix maybe 5% by hand, but these are unique cases. Compilations, etc.

Here's how I fixed every song. These five actions had to be run consecutively:

Action type: Replace with regular expression
Field: _TAG
Regular expression: ([-({\[\]}) _",./+&@:;*])(\l)
Replace matches with: $1$upper($2)
[x] case-sensitive comparison

Action type: Format value
Field: _FILENAME
Formatstring: $regexp(%_filename%,'([-({\[\]}) _",./+&@:;*])(\l)',$1\u$2)

Action type: Replace with regular expression
Field: _All
Regular expression: ^(\l)
Replace matches with: $upper($1)
[x] case-sensitive comparison

Action type: Replace with regular expression
Field: _ALL
Regular expression: (?<![/\-:;\(\)\[\]{}])\s(a|an|the|and|but|or|nor|for|yet|so|as|at|by|for|in|of|to|from)(?=\s)(?!\s[\-\(\)\[\]{}])
Replace matches with: $lower($0)
[ ] case-sensitive comparison

Action type: Replace with regular expression
Field: _ALL
Regular expression: (^|\s|\(|\[|/)'(.{1})
Replace matches with: $1'$upper($2)
[ ] case-sensitive comparison
 
That is interesting - so this MP3Tag allows search/replace with regular expressions? That should solve a bunch of my tagging issues... stuff that I gave up on believing not possible!
 
That is interesting - so this MP3Tag allows search/replace with regular expressions? That should solve a bunch of my tagging issues... stuff that I gave up on believing not possible!

Yeah, I was surprised as well. Bulk Rename Utility is easier to use, and covers 99.9% of cases, but this one was simply not possible with BRU.

Good luck!
 
Back
Top