Regular Expressions

This regular expression fixes tracknumbers from iTunes in the [track]/[numtracks] format (like 3/12).

Regex:

^(\d+)/\d+

Replace with:

$1

This can be applied to every file and it will only correct ones that have the / in them. Good luck!

According to RevRagnarok's suggestions below, I've made the expression less greedy.

1 Like