The regexec() function shall behave as specified in POSIX 1003.1-2001 (ISO/IEC 9945-2003), except with differences as listed below.
Certain aspects of regular expression matching are optional; see Regular Expressions.