In article <email@example.com>, "Ha " <firstname.lastname@example.org> wrote:
> E.g., > s = 'xasdf.123456.dkkk'; > s = '342456.xkkd.sdf23.456..dd'; > > I wanna get the six successive digits from such strings. I guess regular > expression can handle this problem but don't know how.
will find six digits in a row, but do you want it to fail if there happen to be seven? That line will find the first six, but you would have to do something more elaborate to exclude cases of more than six.
-- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.