NAME

re::engine::GNU - GNU Regular Expression Engine

VERSION

version 0.010

SYNOPSIS

use re::engine::GNU;
'test' =~ /\(tes\)t/ && print "ok 1\n";
'test' =~ [ 0, '\(tes\)t' ] && print "ok 2\n";
'test' =~ { syntax => 0, pattern => '\(tes\)t' } && print "ok 3\n";

DESCRIPTION

The GNU regular expression engine plugged into perl. The package can be "used" with the following pragmas:

-debug => boolean

E.g. use re::engine::GNU -debug => 1; # a true value will print on stderr

-syntax => bitwised value

E.g. use re::engine::GNU -syntax => 0; # Default syntax. Useful for the // form.

Regular expressions can be writen in three form:

classic

e.g. qr/xxx/. The default syntax is then GNU Emacs.

array

e.g. [ syntax, 'xxx' ], where syntax is a bitwised value.

hash

e.g. { syntax => value, pattern => 'xxx' }, where value is bitwised, like in the array form.

Bitwised value is to be documented (brave people should read the file regex.h in this package).

EXPORT

None by default.

NAME

re::engine::GNU - Perl extension for GNU regular expressions

SEE ALSO

http://www.regular-expressions.info/gnu.html

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Jean-Damien Durand.

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