If have used Regex before but I am stumbling over trying to determine %artist% that begin with alphabet character. I am trying to batch convert tag to filename.
I have several artists that begin with numeric or non-alphabet characters:
.38 Special
+44
3 Doors Down
(Crosses)
I would like these to to move to a folder named 0-9 and those starting with alphabet character to move to A...Z fodlers based on their first letter.
Here is what I came up with but everything moves to 0-9
$if((((NOT %artist% MATCHES ^\w) OR (%artist% MATCHES ^\d))),0-9\\%artist%,$left(%artistsort%,1)\\%artist%))
I have also trie the following:
$if(($or(($not(%artist% MATCHES ^[a-zA-Z])),(%artist% MATCHES ^\d))),"0-9\"%artist%,$left(%artistsort%,1)\\%artist%))
$if((%artist% MATCHES ^\W),0-9,$left(%artistsort%,1)))
Any suggestions?