MatchState ms;
char * str = smsbuffer;
ms.Target (str);
unsigned int index = 0;
char buf [100];
while (true)
{
char result = ms.Match ("(%a+)" "(%-?%d+)", index);
if (result == REGEXP_MATCHED){
for (int j = 0; j < ms.level; j++);
gsm.WritePhoneNumber(result[j],(%-?%d+);
index = ms.MatchStart + ms.MatchLength;
}
else
break;
}
}