IPB
>  Man Pages > Linux > Suse Linux 10.1 > Section 0p > regex.h man page

regex.h man page

Section 0p - Suse Linux 10.1 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!



NAME

       regex.h - regular expression matching types


SYNOPSIS

       #include <regex.h>


DESCRIPTION

       The <regex.h> header shall define the structures and symbolic constants
       used by the regcomp(), regexec(), regerror(), and regfree()  functions.

       The structure type regex_t shall contain at least the following member:


              size_t    re_nsub    Number of parenthesized subexpressions.

       The type size_t shall be defined as described in <sys/types.h> .

       The type regoff_t shall be defined as a signed integer  type  that  can
       hold  the  largest  value  that can be stored in either a type off_t or
       type ssize_t. The structure type regmatch_t shall contain at least  the
       following members:


              regoff_t    rm_so    Byte offset from start of string
                                   to start of substring.
              regoff_t    rm_eo    Byte offset from start of string of the
                                   first character after the end of substring.

       Values  for  the cflags parameter to the regcomp() function are as fol-
       lows:

       REG_EXTENDED
              Use Extended Regular Expressions.

       REG_ICASE
              Ignore case in match.

       REG_NOSUB
              Report only success or fail in regexec().

       REG_NEWLINE
              Change the handling of <newline>.


       Values for the eflags parameter to the regexec() function are  as  fol-
       lows:

       REG_NOTBOL
              The  circumflex character ( '^' ), when taken as a special char-
              acter, does not match the beginning of string.

       REG_NOTEOL
              The dollar sign ( '$' ), when taken as a special character, does
              not match the end of string.


       The following constants shall be defined as error return values:

       REG_NOMATCH
              regexec() failed to match.

       REG_BADPAT
              Invalid regular expression.

       REG_ECOLLATE
              Invalid collating element referenced.

       REG_ECTYPE
              Invalid character class type referenced.

       REG_EESCAPE
              Trailing '\' in pattern.

       REG_ESUBREG
              Number in \digit invalid or in error.

       REG_EBRACK
              "[]" imbalance.

       REG_EPAREN
              "\(\)" or "()" imbalance.

       REG_EBRACE
              "\{\}" imbalance.

       REG_BADBR
              Content  of "\{\}" invalid: not a number, number too large, more
              than two numbers, first larger than second.

       REG_ERANGE
              Invalid endpoint in range expression.

       REG_ESPACE
              Out of memory.

       REG_BADRPT
              '?' , '*' , or '+' not preceded by valid regular expression.

       REG_ENOSYS
              Reserved.


       The following shall be declared as functions and may also be defined as
       macros. Function prototypes shall be provided.


              int    regcomp(regex_t *restrict, const char *restrict, int);
              size_t regerror(int, const regex_t *restrict, char *restrict, size_t);
              int    regexec(const regex_t *restrict, const char *restrict, size_t,
                         regmatch_t[restrict], int);
              void   regfree(regex_t *);

       The  implementation  may  define  additional  macros or constants using
       names beginning with REG_.

       The following sections are informative.


APPLICATION USAGE

       None.


RATIONALE

       None.


FUTURE DIRECTIONS

       None.


SEE ALSO

       <sys/types.h> , the System Interfaces volume  of  IEEE Std 1003.1-2001,
       regcomp(), the Shell and Utilities volume of IEEE Std 1003.1-2001


COPYRIGHT

       Portions  of  this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
       event of any discrepancy between this version and the original IEEE and
       The  Open Group Standard, the original IEEE and The Open Group Standard
       is the referee document. The original Standard can be  obtained  online
       at http://www.opengroup.org/unix/online.html .



IEEE/The Open Group                  2003                         <regex.h>(P)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Tue Feb 13 02:23:38 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5334 hits)
(openSUSE 10.2)

svn man page (5209 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4870 hits)
(Solaris 10 11_06)

CPAN man page (4607 hits)
(Suse Linux 10.1)

ssh man page (4342 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2881 hits)
(Solaris 10 11_06)

netcat man page (2717 hits)
(Suse Linux 10.1)

pprosetup man page (2490 hits)
(Solaris 10 11_06)

startproc man page (2471 hits)
(Suse Linux 10.1)

signal man page (2408 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Mountain Holidays :: Prototype Electronic Assembly :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum