remove old generatoer, use new generator
This commit is contained in:
@@ -164,5 +164,21 @@ static void MatchCountAnyGroup(ReadOnlySpan<char> seq)
|
||||
|
||||
int ptr = 0;
|
||||
|
||||
|
||||
int group_start = ptr;
|
||||
int furthest = -1;
|
||||
do
|
||||
{
|
||||
if((furthest = seq.LastIndexOf("123"))>0)
|
||||
{
|
||||
ptr += furthest + 3;
|
||||
break;
|
||||
}
|
||||
} while(true);
|
||||
// grouping
|
||||
if(furthest >= 0)
|
||||
{
|
||||
ptr = furthest;
|
||||
int group_end = ptr;
|
||||
// group "name" matched from group_start to group_end
|
||||
}
|
||||
}
|
||||
@@ -21,8 +21,8 @@ namespace StgSharp
|
||||
{
|
||||
|
||||
private static string[] regexSource = [
|
||||
@"(?<name>.*)234",
|
||||
/*
|
||||
@"12(1234|(012.*34)|9125)34",
|
||||
/**/
|
||||
@"http|https|ftp|ftps",
|
||||
@"abc[0-9]x|abc[0-9]y|abd[0-9]x|abd[0-9]y|xyz",
|
||||
@"get_name|get_value|get_type|set_name|set_value|set_type",
|
||||
|
||||
Reference in New Issue
Block a user