in reply to Parser Performance Question

Would love to replace the Perl code with Python, 
Good luck, python has a compatible regexp engine. I don't think it can solve conceptional problems in your code. :)

Replies are listed 'Best First'.
Re^2: Parser Performance Question
by QM (Parson) on Oct 20, 2017 at 09:17 UTC
    Python's regexes are not as fully featured as Perl's. For instance, /i isn't scoped, it's either enabled or disable for the whole match, IIRC.

    I would be really really surprised if Perl's regex performance was worse than Python's on a fair comparison.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of