[pcre-dev] PCRE2-10.23: Issue with 'pcre2_compile'

Top Page

Reply to this message
Author: Saylee
Date:  
To: pcre-dev
Subject: [pcre-dev] PCRE2-10.23: Issue with 'pcre2_compile'
Hello,

I have been using PCRE library to validate strings against regular expressions. Now I wish to upgrade to PCRE2 but I am facing issue with below given regular expression.

Regular expression: ([1-9][0-9]{2,5}[[:space:]-]{1})([0-9]{2,6}[[:space:]-]{1})([0-9]{2,6})([[:space:]-]{1}[0-9]{1,3})?

This expression gets compiled with PCRE, however compiling it with PCRE2 gives error.
The error ‘ERR50’ occurs in function ‘parse_regex’.

Could you please let me know if it is a bug or intentional change?

Regards,
Saylee