dec wrote:dec wrote:ok.
so what is Regex if we want to locate a unique text string, and then delete n no of characters after it?
this is basically because of a 'bug' in BRU where the Add module can take a NEGATIVE value (much to my surprise) - and therefore works from the end which is very very useful/essential; BUT the Remove module DOES NOT HAVE THE SAME FUNCTIONALITY
so my idea is that i will use the Add function using the negative value from the end of name to add a unique string eg 'xxx' at the start of the string to remove, and then use Regex to find that unique string, and remove n characters after it (something like [norm91] [192kbits 48mHz] which are old redundant values)
oh. here is a CORRECT name
Van Morrison - Sweet Thing [2010] [conv-192] [norm-aimp-0db] [256 kbps 48 kHz] [04_26min]
and here is one to fix ...
Alma Cogan - Twenty Tiny Fingers [norm91] [192 kbps 44 kHz] [conv-192-48kHz] [norm-aimp-0db] [239 min]
that is not an exact example but you get the idea
BB King - Rock Me Baby [How Blue Can You Get - Track 13] [1411kbits 44kHz] [conv-96khz] [0433min] [864kbits 96kHz] [conv-192] [norm-aimp-0db] [04_33min]
BB King - Rock Me Baby [How Blue Can You Get - Track 13] [1411kbits 44kHz] [conv-96khz] [0433min] [864kbits 96kHz] [conv-192] [norm-aimp-0db] [04_33min]