rsFalse has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'd like to know, can I switch regex search engine using standard (core) modules? How many atlernative engines exist?

Replies are listed 'Best First'.
Re: Has Perl regex DFA engine in its core?
by Athanasius (Archbishop) on Oct 27, 2014 at 13:15 UTC

    From the Camel Book (4th Edition, page 271):

    Alternate Engines

    Starting with v5.10, you can even swap out Perl’s entire regex engine and replace it with an alternate pattern-matching library. The underlying mechanics that make this possible are documented in the perlreapi manpage. It’s pretty tough reading, meant for seriously hardcore hackers only.

    But you may be in luck. Thanks to CPAN, Perl plug-ins for the alternate regex engine of your choice may already exist. When you use these, you write your patterns normally and, come time to execute them, the alternate engine takes charge.

    To find the alternate regex engines available on CPAN, search within the re::engine:: namespace.

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Re: Has Perl regex DFA engine in its core?
by CountZero (Bishop) on Oct 27, 2014 at 14:08 UTC
    It is not in CORE but the re::engine::RE2 module implements a DFA based RE-engine.

    Alas, I couldn't get it to install on my Windows8 machine.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics