poco
poco copied to clipboard
RegularExpression 1.12.2 match options problem
I think something wrong using RegularExpression match with options. At least using RE_NOTEMPTY it throw me a BAD option exeption
PCRE2 was introduced in 1.12, can you produce a test case demonstrating the problem?
Poco::RegularExpression::MatchVec mtchInfo;
Poco::RegularExpression reTest("(.*[0-9].*[0-9].*[0-9])");
reTest.match("XYZ", 0, mtchInfo, Poco::RegularExpression::RE_NOTEMPTY);
You will end up with, I think with any regexp pattern
if (rc == PCRE2_ERROR_BADOPTION)
{
throw RegularExpressionException("bad option");
}
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 60 days since being marked as stale.