Changeset 853 for trunk/src/fileparts_uvmat.m
- Timestamp:
- Jan 21, 2015, 12:30:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fileparts_uvmat.m
r809 r853 76 76 %% recursive test on FileName starting from the end 77 77 % test whether FileName ends with a number or not 78 r=regexp(FileName,' .*\D(?<num1>\d+)$','names');% \D = not a digit, \d =digit78 r=regexp(FileName,'(?<num1>\d+)$','names');% \D = not a digit, \d =digit 79 79 80 80 if ~isempty(r)% FileName end matches num1 81 81 num1=r.num1; 82 r=regexp(FileName,[' .*\D(?<num2>\d+)(?<delim1>[-_])' num1 '$'],'names');82 r=regexp(FileName,['(?<num2>\d+)(?<delim1>[-_])' num1 '$'],'names'); 83 83 if ~isempty(r)% FileName end matches num2+delim1+num1 84 84 delim1=r.delim1;
Note: See TracChangeset
for help on using the changeset viewer.