internal string ScanCapname()
{
int startpos = Textpos();
while (CharsRight() > 0)
{
if (!RegexCharClass.IsWordChar(MoveRightGetChar()))
{
MoveLeft();
break;
}
}
return _pattern.Substring(startpos, Textpos() - startpos);
}