- Timestamp:
- Dec 26, 2011, 10:00:35 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fileparts_uvmat.m
r346 r352 66 66 delim1=r.delim1; 67 67 num2=r.num2; 68 r=regexp(FileName,['.*\D(?<num3>\d+)(?<delim2>[-_]&[^' delim1 '])' num2 delim1 num1 '$'],'names'); 68 switch delim1 69 case '_' 70 delim2_to_match='-'; 71 case '-' 72 delim2_to_match='_'; 73 end 74 r=regexp(FileName,['.*\D(?<num3>\d+)(?<delim2>' delim2_to_match ')' num2 delim1 num1 '$'],'names'); 69 75 if ~isempty(r) % FileName end matches num3 delim2 num2 delim1 num1 70 76 delim2=r.delim2;
Note: See TracChangeset
for help on using the changeset viewer.