make switch_regex_match() work with grouping

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16555 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2010-02-02 19:02:37 +00:00
parent 5391355af7
commit 6f40722c17
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ SWITCH_DECLARE(switch_status_t) switch_regex_match_partial(const char *target, c
int error_offset = 0; /* Holds the offset of an error */ int error_offset = 0; /* Holds the offset of an error */
pcre *pcre_prepared = NULL; /* Holds the compiled regex */ pcre *pcre_prepared = NULL; /* Holds the compiled regex */
int match_count = 0; /* Number of times the regex was matched */ int match_count = 0; /* Number of times the regex was matched */
int offset_vectors[2]; /* not used, but has to exist or pcre won't even try to find a match */ int offset_vectors[255]; /* not used, but has to exist or pcre won't even try to find a match */
int pcre_flags = 0; int pcre_flags = 0;
/* Compile the expression */ /* Compile the expression */