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