Hey Boroda,
In an endeavor to help somebody, and learn something myself on the side I am challenged with the following.
Suppose the three following possible title tags of a track:
"first-second-third-fourth.mp3"
"first-second.mp3"
"first second.mp3"
The wish is to have your tool find only the word "second" from the first two examples, and do nothing with the third example. (or any other form without at least one "-" )
The outcome ("second") is to be used to populate another tag.
(the title tag itself is not to be changed)
Having almost none knowledge with regex, I got some very helpful assistance from a regex forum, which suggested to use: (?<=^[^-]+-)[^-]+
This seems to indeed work perfectly when e.g. running it through a regex tester, but I can't for the life of me find out how to get the outcome in the field "replace by" in your tool.
Can it be done?
https://www.youtube.com/watch?v=KNnPks3CQWMedit:
I changed it to: ((?<=^[^-]+-)[^-]+)
(added a bracket at beginning and end)
In an online regex tester like
http://regexlib.com/RETester.aspx it now works perfectly, also giving the outcome in a $1 format.
But when I enter $1 in the "Replace with:" field in your plugin, it writes not only the outcome, but also what's behind the next "-".
Why is that?