Make outpost a nameserver for [dom]
[hcoop/domtool2.git] / pcre / pcre_sml.c
1 #include <pcre.h>
2
3 int PCRE_SML_validRegexp(const char *s) {
4 pcre *re;
5 const char *error;
6 int erroffset;
7
8 re = pcre_compile(s, 0, &error, &erroffset, NULL);
9
10 if (re) {
11 pcre_free(re);
12 return 1;
13 } else
14 return 0;
15 }