1 --- regex.3.bsdnew 2009-11-11 11:29:04.000000000 -0800
2 +++ regex.3 2009-11-11 11:29:04.000000000 -0800
11 .Nd regular-expression library
17 -.Fa "regex_t * restrict preg" "const char * restrict pattern" "int cflags"
21 -.Fa "const regex_t * restrict preg" "const char * restrict string"
22 -.Fa "size_t nmatch" "regmatch_t pmatch[restrict]" "int eflags"
23 +.Fa "regex_t *restrict preg"
24 +.Fa "const char *restrict pattern"
29 -.Fa "int errcode" "const regex_t * restrict preg"
30 -.Fa "char * restrict errbuf" "size_t errbuf_size"
32 +.Fa "const regex_t *restrict preg"
33 +.Fa "char *restrict errbuf"
34 +.Fa "size_t errbuf_size"
38 +.Fa "const regex_t *restrict preg"
39 +.Fa "const char *restrict string"
41 +.Fa "regmatch_t pmatch[restrict]"
45 -.Fn regfree "regex_t *preg"
50 These routines implement
52 @@ -71,12 +80,11 @@ see
56 -compiles an RE written as a string into an internal form,
57 +compiles an RE, written as a string, into an internal form.
59 -matches that internal form against a string and reports results,
60 +matches that internal form against a string and reports results.
62 -transforms error codes from either into human-readable messages,
64 +transforms error codes from either into human-readable messages.
66 frees any dynamically-allocated storage used by the internal form