Beluna
April 12, 2017, 5:26pm
#1
looked in FAQ. Seems simple, but can't replace tag info.
I'm trying to remove the track# from title or Trim space from Beginnig.
the action doesn't seem to work
replace
Title
^\d*\s*-\s
Example.
Take Five
change to:
Take Five
Or just trim Title by 5 spaces...
Thanks
No wonder as the pattern you find in the title is not matched by the expression.
The expression expects a number and a space immediately behind it. You've got a dot there.
^\d*.\s*-\s
(and it is not "Replace" but "Replace with regular expression").
Did you have a look at the help for string functions?
https://docs.mp3tag.de/scripting/#string-functions
e.g. $cutleft()
poster
April 13, 2017, 5:35am
#3
Converter-Menu: Tag-Tag
Field: TITLE
Format String: $cutleft(%title%,5)
or an action:
Type: Format Value
Field: TITLE
Format String: $cutleft(%title%,5)
Beluna
April 13, 2017, 11:48am
#4
ohrenkino:
No wonder as the pattern you find in the title is not matched by the expression.
The expression expects a number and a space immediately behind it. You've got a dot there.
^\d*.\s*-\s
(and it is not "Replace" but "Replace with regular expression").
Did you have a look at the help for string functions?
https://docs.mp3tag.de/scripting/#string-functions
e.g. $cutleft()
Thanks
Someone in the FAQ expalined why it wouldn't work... gave a soltion:
^\d{0,7}[- ._ ]*
Works for me.
Remove leading numbers and other characters
$regexp (%TITLE% ,'^\d{0,3}[\s\.\_\-]?\s*' ,)
From:
01-99 Luftballons
123.8000 miles from home
To:
99 Luftballons
8000 miles from home
... based on ... aladoro ... Jul 5 2007, 08:12 ...
Remove 'track' number from title?
DD.20170414.1127.CEST