Lines Matching defs:regex
30 #include <regex.h>
36 struct re_pattern_buffer regex;
40 memset (®ex, '\0', sizeof (regex));
42 s = re_compile_pattern ("xy$", 3, ®ex);
49 match[0] = re_match_2(®ex,"xyz",3,NULL,0,0,NULL,2);
51 free (regex.buffer);
52 memset (®ex, '\0', sizeof (regex));
54 s = re_compile_pattern ("xy\\>", 4, ®ex);
61 match[1] = re_search_2(®ex,"xyz",3,NULL,0,0,2,NULL,2);
63 free (regex.buffer);
64 memset (®ex, '\0', sizeof (regex));
66 s = re_compile_pattern ("xy \\<", 5, ®ex);
74 match[2] = re_match_2(®ex,"xy ",4,NULL,0,0,NULL,3);
75 match[3] = re_match_2(®ex,"xy z",4,NULL,0,0,NULL,3);