fork download
  1. s = '\\198.168.0.10\share\ccdfiles\UA-midd3-files\UA0001A_15_Jun_2014_08.17.49\Midd3\y12m05d25h03m16.midd3';
  2. res = regexp(s, '(?i)\\(?![^\W_]*(midd|y\d+m\d+))(?=[^\W_]*\d)(?=[^\W_]*[a-zA-Z])([^\W_]+)','tokens');
  3. disp(res{1}{1})
  4.  
Success #stdin #stdout 0.47s 121792KB
stdin
Standard input is empty
stdout
UA0001A