OLD | NEW |
---|---|
(Empty) | |
1 #include <re2/re2.h> | |
2 #include <re2/filtered_re2.h> | |
3 #include <stdio.h> | |
4 | |
5 using namespace re2; | |
6 | |
7 int main(void) { | |
8 FilteredRE2 f; | |
9 int id; | |
10 f.Add("a.*b.*c", RE2::DefaultOptions, &id); | |
11 vector<string> v; | |
12 f.Compile(&v); | |
13 | |
14 if(RE2::FullMatch("axbyc", "a.*b.*c")) { | |
15 printf("PASS\n"); | |
16 return 0; | |
17 } | |
18 printf("FAIL\n"); | |
19 return 2; | |
20 } | |
OLD | NEW |