re_exec man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

re_comp(3)							    re_comp(3)

       re_comp, re_exec - Handle regular expressions

       #include <regex.h>

       char *re_comp(
	       char *string ); int re_exec(
	       char *string );

       Standard C Library (libc)

       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       re_comp(), re_exec():  XPG4-UNIX

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

       Points to the string that is to be matched or converted.

       The re_comp() function converts a string into an internal form suitable
       for pattern  matching.  The  re_exec()  function	 compares  the	string
       pointed	to  by the string parameter with the last string passed to the
       re_comp() function.

       When the re_comp() function is passed a value of 0 (zero) or NULL,  the
       regular expression currently being converted remains unchanged.

       Strings	passed	to both the re_comp() and re_exec() functions may have
       trailing or embedded newline characters;	 however,  these  strings  are
       terminated by a zero byte.

       The  re_comp()  and  re_exec() functions support simple regular expres‐
       sions, which are defined in the grep(1) reference page.

       The re_comp() and re_exec() interfaces are scheduled  to	 be  withdrawn
       from a future version of the X/Open CAE Specification.

       These interfaces are obsolete; they are guaranteed to function properly
       only in the C/POSIX locale and should be avoided. Use  the  POSIX  reg‐
       comp() interface in place of re_comp() and re_exec().

       The  re_comp()  function	 returns  a  value of 0 (zero) when the string
       pointed to by the string parameter is  successfully  converted;	other‐
       wise, an error message string is returned.

       Upon successful completion, the re_exec() function returns a value of 1
       if string matches the last compiled regular expression. Otherwise,  the
       re_exec()  function  returns  a	value  of 0 (zero), if string fails to
       match the last compiled regular expression, and a value of -1,  if  the
       compiled regular expression is invalid (indicating an internal error).

       Functions: regcomp(3)

       Commands: grep(1)

       Standards: standards(5)


List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net