PREV UP NEXT Rx

Chapter 4: Posix Entry Points

This section is excerpted from The GNU C Library reference manual by Sandra Loosemore with Richard M. Stallman, Roland McGrath, and Andrew Oram.

The GNU C library supports the standard POSIX.2 interface. Programs using this interface should include the header file `rxposix.h'.

  • POSIX Regexp Compilation Using regcomp to prepare to match.
  • Flags for POSIX Regexps Syntax variations for regcomp.
  • Matching POSIX Regexps Using regexec to match the compiled pattern that you get from regcomp.
  • Regexp Subexpressions Finding which parts of the string were matched.
  • Subexpression Complications Find points of which parts were matched.
  • Regexp Cleanup Freeing storage; reporting errors.

  • Doc Search Man Page Site Search Web Search