ZvezdanD wrote:tooone7 wrote:Is there some way that I can combine these two presets I have now? The one for the Season# and the one for the Episode#?
Not currently since that requires the modification of two fields at once.
Actually, if you are using RegExp add-on version 4.2 or newer, you could modify two or more fields at once using single preset, but that solution requires good VBScript knowledge and it is just temporary until I implement proper support for the action groups. The "Swap <From Field> and <Into Field>..." preset is an example how it is possible to do such modification (that preset is the only predefined one where both Source and Destination fields are modified, in all other cases only Destination field is modified).
Now, here are settings for your example where both Season# and Episode# are modified using single preset:
Find what: ^.*
Into: Season #
Regular expression 1: checked
Replace with: RegExpEx(<From Field>, "(.+)(s)?(\d{1,2})([ex])?(\d\d)(.+)?", 0, 2) & Eval(IIf(bReplacing, "Execute(""oSongData.EpisodeNumber = RegExpEx(<From Field>, """"(.+)(s)?(\d{1,2})([ex])?(\d\d)(.+)?"""", 0, 4)"")", """"""))
From: Filename
VBScript expression: checked