That's correct, the Python program that uses pcre2 is faster.
The slower program is an example from that website of a regex program which does not " just calls out to a very fast c library (pcre2)…".
The slower program is an example from that website of a regex program which does not " just calls out to a very fast c library (pcre2)…".
Your python 3 one isnt the fastest python 3 solution, it’s this one which uses pcre2