I'm trying to get a regex expression that fills in 4 pieces of information for me.
1) Series, in this case Formula1
2) Year, in this case 2010
3) Venue, in this case Grand Prix
4) Tag, in this case: Grand.Prix.WS.PDTV.XviD-433 2
I have a regex expression in the snippet of the bash file below, bit it is not generating any of those 4 tags as I was hoping. Any help would be much appreciated.
Example of file being looked at by Regex
Regex code and bash remap section of code:
# regex expression parse Tag information from the filename
if [[ $CATEGORY -eq "tv" && $NAME =~ $regex ]]; then