public override int Match(string textToMatch, int matchAtIndex)
{
int currentIndex = matchAtIndex;
do
{
char currentChar = textToMatch[currentIndex];
if (currentChar >= '0' && currentChar <= '9')
{
//current char is hexchar
}
else
{
break;
}
currentIndex++;
} while (currentIndex < textToMatch.Length);
return currentIndex - matchAtIndex;
}