1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
16 int OS_Pcre2(const char *pattern, const char *str)
21 if (OSPcre2_Compile(pattern, ®, PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_CASELESS)) {
22 if(OSPcre2_Execute(str, ®)) {
26 OSPcre2_FreePattern(®);