
regexp_match
NAME
regexp_match - determine if a string contains a regular expression match
SYNOPSIS
int regexp_match(string pattern, string subject, int case_insensitive)
DESCRIPTION
A regular expression pattern string is searched for within a subject
string. If a "match" is found then one is returned, if not, zero.
The presence and non-negativity of the optional case_insensitive
flag means the searching is done without regard to case.
EXAMPLES
regexp_match("bcd", "abcde") returns 1
regexp_match("xyz", "abcde") returns 0
regexp_match("b\\([c]*\\)d", "abcccccde")
returns 1
NOTES
The regular expression pattern may have at most nine subexpressions.
SEE ALSO
HTMLised 1998 Greg Lewis
(glewis@maths.adelaide.edu.au)