NAME

App::Reg - reg RegExp debugger

SYNOPSIS

use App::Reg;
# NOT using qr// is recommended unless you don't want compilation
# messages (because qr// is compiled before my module has chance
# to load re module).
reg 'abc', 'a.c';

DESCRIPTION

App::Reg is the module that contains logic of reg utility. It contains one method, reg.

EXPORTS

All functions are exported using Exporter. If you don't want this (but why you would use this module then) try importing it using empty list of functions.

use App::Reg ();
reg($string, $pattern, %options)

The only function in this module. It matches $string using $pattern and shows Perl's regular expression debugger. It supports two options in hash %options.

Returns the matches when called in list context with global option, number of matches otherwise.

color

When set to true, use re is called with debugcolor instead of debug.

global

Sets the /g property in RegExp and matches RegExp in list context.

AUTHOR

Konrad Borowski <glitchmr@myopera.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Konrad Borowski.

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