From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

reg - re 'debug' wrapper

SYNOPSIS

reg [options] [string] [regex]
Options:
-ascii use ASCII encoding for matching
-global multiple matches
-help brief help message
-no-color disables ansi sequences
-version show version of reg

OPTIONS

-ascii

Uses ASCII encoding for matching. In particular it means that the data given to this utility is threated as binary data and \d only matches [0-9].

-global

Assume multiple matches, just like if /g modifier in list context was used on RegExp.

-help

Print a brief help message and exits.

-no-color

Disables ANSI sequences and enforces the text-only representation of RegEx debugger. Useful when pasting the output of RegEx debugger.

-version

Shows current reg version.

DESCRIPTION

This program tries to match regex to string and shows Perl regular expression debugger output.

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.