PCRE in Python
How complete a subset of Perl's pattern matching is in Python's PCRE? Which version of Perl is it equivalent to?
|
I have virtually no experience with Perl, so all I can do is refer you to documentation of re module from Python standard library.
|
Oh, yes, there is no perfect answer. All of the PCRE implementations are different, but you can say they are mainly offering only a subset of the real perl implementation. But obviously/unfortunately it also depends on the version of PCRE/perl itself. I wouldn't say about equivalence.
If you need a special kind of RE you need to check if that works. If you have a special case please show us. I think in most cases the rework of those REs may help. |
No idea. But in addition to the documentation that adriusk referred you to:
Quote:
https://github.com/python/cpython/bl...st/re_tests.py |
Quote:
https://github.com/Perl/perl5/blob/blead/t/re/re_tests It looks like manual comparison is necessary. pan64, I don't have a specific use-case handy. It is more a wish to know the relative status. |
All times are GMT -5. The time now is 03:43 AM. |