Hi,
I am trying my best to learn Regex but I still suck. I would appreciate if someone can assist me.
I have a file name:
3052503155104.Bourjois_FDTAirMat_01_1.png
I would like to keep everything before the first . and erase everything until the last _
so the desired output would be 3052503155104_1.png
I want to remove the . as well but keep the _
so
3052503155104.Bourjois_FDTAirMat_01_1.png
3052503155104.Bourjois_FDTAirMat_01_2.png
3052503155104.Bourjois_FDTAirMat_01_3.png
becomes
3052503155104_1.png
3052503155104_2.png
3052503155104_3.png
Would greatly appreciate your help.
P.S - I don't want to use the prevent duplicate feature as a workaround.