Mini regex-module inspired by Rob Pike's regex code described in: http://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html.
More...
|
re_t | re_compile (const char *pattern) |
| Compile regex string pattern to a regex_t-array. More...
|
|
int | re_matchp (re_t pattern, const char *text) |
| Find matches of the compiled pattern inside text. More...
|
|
int | re_match (const char *pattern, const char *text) |
| Find matches of the txt pattern inside text (will compile automatically first). More...
|
|
Mini regex-module inspired by Rob Pike's regex code described in: http://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html.
◆ re_t
Typedef'd pointer to get abstract datatype.
◆ re_compile()
re_t re_compile |
( |
const char * |
pattern | ) |
|
Compile regex string pattern to a regex_t-array.
◆ re_match()
int re_match |
( |
const char * |
pattern, |
|
|
const char * |
text |
|
) |
| |
Find matches of the txt pattern inside text (will compile automatically first).
◆ re_matchp()
int re_matchp |
( |
re_t |
pattern, |
|
|
const char * |
text |
|
) |
| |
Find matches of the compiled pattern inside text.