I need to convert regexitem *regex to ctype variable, any ideas?
C function expects func(regexitem *regex)
char *regex1Groups[] = { "a","b","x","s" ,NULL};
char *regex2Groups[] = { "l" ,NULL};
regexitem regex[] = {
{"bla", regex1Groups,4 },
{"bla2",regex2Groups,1 }
};
First i defined
class regexitem(Structure):
_fields = ("regex",c_char_p), ("groups",c_char_p*size), ("groupsize",c_int)
and ran into first problem, declaring array of regexitem because size of groups is not known in advance.