Super Regular Expression to remove Track numbers

Hi,

I know that you could run separate Regex's to remove the track numbers, but is there a super expression that can capture all the below track numbers patterns and remove them

01.GimmeSympathy
01 .GimmeSympathy
01 . GimmeSympathy
01-GimmeSympathy
01 -GimmeSympathy
01 - GimmeSympathy
01 GimmeSympathy

Thanks in advance!

Action: Replace with regular expression for the field.
Search pattern: \d+\W*(\u.*)
Replace string: $1

Searches for something starting with digits followed by something else and then an Upper Case letter.

Thanks for your reply

Just wondering will the regex work if the following is not upper case letter. There will be times when it could be lower case
Regards

You could use

\d+\W*(.*)

But there's another possible problem: \W is the negation of \w, or word characters. Word characters include letters (both upper and lower case), digits, and the underscore. The underscore could be an issue.

For instance, it would change

06_Some Title

to

_Some Title

The following may be better:

\d+[^0-9A-Za-z](.)

You have to look for a delimiter between the data you want to keep and that you don't.
This could be
a fixed position or
a unique character or
a pattern.
Your example show that you neither have a fixed position nor a unique character. If you now cut out the unique pattern as well then you have lost. Or you have to define a new expression that deals with the other pattern.

@jj: the regexp 'd+[^0-9A-Za-z](.)' returns for "01.GimmeSympathy" again "01.GimmeSympathy" - am I missing something?

From:

01.GimmeSympathy
01 .GimmeSympathy
01 . GimmeSympathy
01-GimmeSympathy
01 -GimmeSympathy
01 - GimmeSympathy
01 GimmeSympathy
To:
GimmeSympathy

This is a Mp3tag standard scripting function ...

$trimLeft(%TITLE%,'0123456789 -.')

This is a Mp3tag regular expression scripting function ...

$regexp(%TITLE%,'^[\d\s\-\.]+',)

Be aware, when having a TITLE like ...
01 - 416 Conspiracy Theories
... this will become ...
Conspiracy Theories

Therefore better to use ...

From:

01.416 Conspiracy Theories
01 .416 Conspiracy Theories
01 . 416 Conspiracy Theories
01-416 Conspiracy Theories
01 -416 Conspiracy Theories
01 - 416 Conspiracy Theories
01 416 Conspiracy Theories
To:
416 Conspiracy Theories

$regexp(%TITLE%,'^\d+[\s\-\.]+',)

... or more restrictive ...

$regexp(%TITLE%,'^\d\d[\s\-\.]+',)

DD.20140813.1151.CEST

Is that a typo? You actually mean

\d+[^0-9A-Za-z](.)

don't you? This works for me.

Yes, sorry. You are quite right.