Ignore:
Timestamp:
Jan 21, 2015, 12:30:26 AM (10 years ago)
Author:
sommeria
Message:

bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fileparts_uvmat.m

    r809 r853  
    7676%% recursive test on FileName starting from the end
    7777% test whether FileName ends with a number or not
    78 r=regexp(FileName,'.*\D(?<num1>\d+)$','names');% \D = not a digit, \d =digit
     78r=regexp(FileName,'(?<num1>\d+)$','names');% \D = not a digit, \d =digit
    7979
    8080if ~isempty(r)% FileName end matches num1
    8181    num1=r.num1;
    82     r=regexp(FileName,['.*\D(?<num2>\d+)(?<delim1>[-_])' num1 '$'],'names');
     82    r=regexp(FileName,['(?<num2>\d+)(?<delim1>[-_])' num1 '$'],'names');
    8383    if ~isempty(r)% FileName end matches num2+delim1+num1
    8484        delim1=r.delim1;
Note: See TracChangeset for help on using the changeset viewer.