public override Match Scan (Regex regex, string text, int start, int end) { this.text = text; this.text_end = end; this.scan_ptr = start; if (Eval (Mode.Match, ref scan_ptr, program_start)) return GenerateMatch (regex); return Match.Empty; }