Hello! I'm hoping to get some assistance with the following:

Example file names:

05m01 becomes 0005_001

23m34 becomes 0023_034

712m182 becomes 0712_182

The part before "m" needs to be translated to 4 digits padded with zeros, the part after "m" needs to be exactly 3 digits padded with zeros

m becomes a _ (that part I can do )

Thanks in advance for any assistance.