Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/re_comp.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/re_comp.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/re_comp.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/re_comp.html on line 8
Compile a regular expression
#include <unix.h>
char *re_comp( char *s );
- s
- A string that contains the regular expression that you want to compile.
This string must end with a null byte and may include newline characters.
If this argument is NULL, the current regular expression
remains unchanged.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
|
This function is in libc.a, but not in libc.so
(in order to save space). |
The re_comp() function converts a regular expression string
(RE) into an internal form suitable for pattern matching.
Use this function with
re_exec().
The re_comp() and re_exec() functions support
simple regular expressions.
The regular expressions of the form \{m\},
\{m,\}, or \{m,n\} aren't supported.
NULL if the
string pointed to by s was successfully
converted. Otherwise, a pointer to one of the following
error message strings is returned:
- No previous regular expression
- Regular expression too long
- unmatched \(
- missing ]
- too many \(\) pairs
- unmatched \)
Legacy Unix
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
re_exec(),
regcomp(),
regerror(),
regexec()
grep
in the Utilities Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/re_comp.html on line 163
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/re_comp.html on line 163