SWI-Prolog / issues

Dummy repository for issue tracking
8 stars 3 forks source link

anchored flag in regex does not have any effect #91

Closed lapalme closed 5 years ago

lapalme commented 5 years ago

It seems that the 'anchored' flag in re_match() does not work as can be seen with these simple goals in the prolog console.

?- re_match('^an','banana'). false.

?- re_match('an','banana',[anchored(true)]). true.

JanWielemaker commented 5 years ago

Thanks. The option was ignored. Pushed a fix to the pcre package.