poco icon indicating copy to clipboard operation
poco copied to clipboard

RegularExpression 1.12.2 match options problem

Open micheleselea opened this issue 3 years ago • 2 comments

I think something wrong using RegularExpression match with options. At least using RE_NOTEMPTY it throw me a BAD option exeption

micheleselea avatar Aug 23 '22 10:08 micheleselea

PCRE2 was introduced in 1.12, can you produce a test case demonstrating the problem?

aleks-f avatar Aug 23 '22 12:08 aleks-f

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");
	}

micheleselea avatar Aug 23 '22 12:08 micheleselea

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Aug 24 '23 02:08 github-actions[bot]

This issue was closed because it has been inactive for 60 days since being marked as stale.

github-actions[bot] avatar Oct 23 '23 02:10 github-actions[bot]