Date: Jan 22, 2013 6:38 PM
Author: james bejon
Subject: Re: Help using textscan or sscanf
% What's the rule for getting '09837381019' to '4412373810', e.g., "If there are 11 digits, hack off the first 3 and the last 2 and stick a 4412 on the front"?

% Seems like you have a lot of different cases and rules. If you list all of them, I'm sure we could come up with a regexp that will handle them all; otherwise, there's a risk that the regexps will mess each other up