2 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * A (more) generic interface to regular expression matching
32 /* this is a non-standard option supported by Solaris 2.5.x which allows
33 * patterns of the form \<...\>
39 #define REGCOMP(X,Y,Z) regcomp(X, Y, REG_WORDS|REG_EXTENDED|(Z))
40 #define REGEXEC(X,Y) regexec(&X, Y, (size_t)0, (regmatch_t *)0, (int)0)
44 char *pattern; /* printable version */
45 regex_t *rx; /* compiled expression */
46 int not; /* do not match */
50 WHERE REGEXP QuoteRegexp;
51 WHERE REGEXP ReplyRegexp;
53 WHERE REGEXP GecosMask;
55 #endif /* MUTT_REGEX_H */