private PatternScanResult ComplexFind( string text, int startPosition)
{
MatchCollection mc = this.rx.Matches(text);
foreach (Match m in mc)
{
int pos = m.Index;
string p = m.Value;
if (pos >= startPosition)
{
PatternScanResult t;
t.Index = pos;
t.Token = p;
return t;
}
}
PatternScanResult res;
res.Index = 0;
res.Token = "";
return res;
}
}