kokke/tiny-regex-c

Can you support "Match - Search" feature?

Closed this issue · 1 comments

example:
src text: hello, ac97!
char* p = re_search(src, "^.+,/s?+ac(/d/d)");
if( p != NULL )
printf("Number is %c%c\n", *p, *(p+1));

kokke commented

Hi @4kzeng and thank you for taking an interest in this project :)

Unfortunately the current design does not support capturing groups at the moment, so what you are asking is currently not supported.