diff options
Diffstat (limited to 'pcre')
-rw-r--r-- | pcre/pcre_compile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pcre/pcre_compile.c b/pcre/pcre_compile.c index 794cd6da223..cdc7f95304a 100644 --- a/pcre/pcre_compile.c +++ b/pcre/pcre_compile.c @@ -4703,6 +4703,12 @@ for (;; ptr++) goto FAILED; } goto NORMAL_CHAR; + + /* In another (POSIX) regex library, the ugly syntax [[:<:]] and [[:>:]] is + used for "start of word" and "end of word". As these are otherwise illegal + sequences, we don't break anything by recognizing them. They are replaced + by \b(?=\w) and \b(?<=\w) respectively. Sequences like [a[:<:]] are + erroneous and are handled by the normal code below. */ /* In another (POSIX) regex library, the ugly syntax [[:<:]] and [[:>:]] is used for "start of word" and "end of word". As these are otherwise illegal |