Date: Jan 20, 2013 10:58 AM
Author: james bejon
Subject: Re: Help using textscan or sscanf

% Apologies if this has already been solved elsewhere--haven't had time to read through the thread, but...
S = {'154045001', '926665001', '615017', '1976936151', '801700', '4506702001'};
regexprep(S, '^.*?([0-9]{1,9})$', '4421$1')