TuRDMaN wrote:I have my Artist tags set up as Artist (feat. Artist2, Artist3 & Artist4), and I'd like to change them to the multi-artist format (Artist1; Artist2; Artist3; Artist4)
The best I've managed to do is replace (feat. | , | & with ; but that ends up leaving the trailing ) at the end, which I have to clean up with another preset.
The next preset will replace all feat. pres. vs. with ";" and remove ending parentheses no matter what is inside of them, so you should check the result before you choose the Replace command (you could expand the preset further to check cases when parentheses don't contain featuring artists, but it would be more complicated):
Find what:
- Code: Select all
^.*
Into: Artist
Regular expression 1: checked
Replace with:
- Code: Select all
RegSub(RegSub("$&", "\s?\b(&|feat\.?|featuring|features|ft\.?|presenting|presents|pres\.?|versus|vs\.?)\s", "; "), "(.+)\s\(([^)]*)\)$", "$$1$$2")
VBScript expression: checked
TuRDMaN wrote:I would like to make a preset to extract Album Artist from the path (ex. P:\MP3\Albums\ARTIST- Album\song.mp3) and replace the Album Artist tag with it.
I think Auto-Tag from Filename would be easier, but if you are still interested you could try with:
Find what:
- Code: Select all
^.*
Into: Album Artist
Regular expression 1: checked
Replace with:
- Code: Select all
RegExp(RegExpEx(oSongData.Path, "\\([^\\]+)\\([^\\]+)\.([^\.\\]+)$", 0, 0), "^([^-]*)(?=\s-\s.*)", 0)
VBScript expression: checked
TuRDMaN wrote:I'm pretty sure I could do this one using lookbehind, but lookbehind isn't implemented in this script (is it?)
Wow, you know Regular expressions very well if you are aware about lookbehind. Yeah, this is something which is missing really badly, but unfortunately it is not a problem with my script, but with the
VBScript implementation of the Regular expressions. You should blame Micro$oft for this.
