The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

re::engine::POSIX - POSIX (IEEE Std 1003.1-2001) regular expressions

SYNOPSIS

    use re::engine::POSIX;

    if ("mooh!" =~ /\([mo]*\)/) {
        say $1; # "moo"
    }

DESCRIPTION

Replaces perl's regexes in a given lexical scope with the system's POSIX regular expression engine.

Modifiers

POSIX regexes (unlike Perl's) behave as if the //s modifier were on by default, this can be turned off by specifying the REG_NEWLINE flag to regcomp via //m.

The other valid flags are x and i which turn on REG_EXTENDED and REG_ICASE respectively.

It is not possible to specify the REG_NOTBOL and REG_NOTEOL flags as they do not fit within the Perl syntax.

DIAGNOSTICS

Error messages from from regerror will be propagated on invalid patterns.

CAVEATS

Does not ship with its own regexp implementation so it'll fail on non-POSIX systems.

AUTHOR

Ævar Arnfjörð Bjarmason <avar@cpan.org>

LICENSE

Copyright 2007 Ævar Arnfjörð Bjarmason.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.