Regex Help


#1

I am trying to achieve the following:

Source
ALBUM:
Global DJ Broadcast (2012-09-13) (Ibiza Summer Sessions) (including Rex Mundi Guestmix on 2012-09-01) [Livesets.us]

Target
ALBUM:
Global DJ Broadcast (Ibiza Summer Sessions) (including Rex Mundi Guestmix on 2012-09-01)

SETDATE:
2012-09-13

I already have some actions setup that remove the " [Livesets.us]" from the end of the tag and also the " (2012-09-13)" from the tag.

What I can't achieve is putting the date 2012-09-13 into a new tag SETDATE.

The regex I've tested matches it successfully but I can't seem to implement it in mp3tag. Perhaps I am using the wrong syntax or action.

Regex used: \s(([0-9-]+)


#2

Action: Format value
Field: SETDATE
Format string:

$regexp(%ALBUM%,'^.*\s\(([0-9\-]+)\).*$','$1')

... or ...
Format string:

$regexp(%ALBUM%,'^.*\s\((\d\d\d\d-\d\d-\d\d)\).*$','$1')

... or ...
Action: Guess values
Source format: %ALBUM%
Guessing pattern: %TMP1% (%TMP2%) (%TMP3%) (%TMP4%) [%TMP5%]
... will create five tag-fields for further use.

... or ...
Action: Guess values
Source format: %ALBUM%
Guessing pattern: %DUMMY% (%SETDATE%) (%DUMMY%) (%DUMMY%) [%DUMMY%]
... will create the tag-field SETDATE.

DD.20120922.1150.CEST