Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.
Also make sure you've read the Forum Guidelines before posting in this forum.
![]() ![]() |
Apr 15 2007, 06:02
Post
#1
|
|
|
Member Group: Members Posts: 2 Joined: 15-April 07 Member No.: 4777 Mp3tag Version: 2.37i |
Hi, I'm fairly new to using regex in mp3tag.
I'm trying to bulk export the cover art to all of my albums to directory using the 'quick action' -> 'export cover to file' 'c:\Covers\%artist%-%album%' This works great unless there are special characters in the album name (i.e. : or \ etc.). What regex expression can I use to remove (or replace) any instance of a non-alphanumeric character in the album name? I need to do this without retagging the original files? I'd like to replace %album% = 'Star Wars - Episode 1: The Phantom Menace' with 'Star Wars - Episode 1 The Phantom Menace' or 'Star Wars - Episode 1- The Phantom Menace' Thanks |
|
|
|
Apr 15 2007, 11:00
Post
#2
|
|
![]() Moderator Group: Moderators Posts: 5525 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
$replace(%album%,:,,\,)
or $replace(%album%,:,-,\,-) ! This syntax only works since 2.37i http://help.mp3tag.de/en/main_scripting.html -------------------- |
|
|
|
Apr 15 2007, 14:56
Post
#3
|
|
|
Member Group: Members Posts: 2 Joined: 15-April 07 Member No.: 4777 Mp3tag Version: 2.37i |
$replace(%album%,:,,\,) or $replace(%album%,:,-,\,-) ! This syntax only works since 2.37i http://help.mp3tag.de/en/main_scripting.html Thank a lot. That worked great. I must have overlooked the scripting page. I found what will eliminate all invalid characters is: $validate(%artist% - %album%,-) |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 02:26 |