Regexp::HTMLify - Highlight regular expression capture buffers and matches using HTML and CSS


Regexp-HTMLify documentation  | view source Contained in the Regexp-HTMLify distribution.

Index


NAME

Top

Regexp::HTMLify - Highlight regular expression capture buffers and matches using HTML and CSS

SYNOPSIS

Top

    use CGI qw/:standard/;
    use Regexp::HTMLify;

    my $re = qr((?i)(This) (?!and not that )(will match));
    my $match = 'This will match';
    my @titles = qw(this matches);

    print 
      start_html('A simple example of Regexp::HTMLify'),
      HTMLifyGetColormapCSS(),
      p('Regexp: ',HTMLifyRE($re,@titles));

    if ($match =~ m#$re#) {
      print p('MATCH :',HTMLifyREmatches($match,@titles));
    } else {
      print p('NO match');
    }

    print end_html;

DESCRIPTION

Top

This library offers (limited, see below) functionality to highlight regular expression capture buffers using HTML and CSS.

LIMITATIONS

Top

This library has the following limitations:

AUTHOR

Top

Niels van Dijke <CpanDotOrgAtPerlboyDotNet>

TODO

Top

NOTES

Top

This is alpha code and not extensively tested. Use with care!

COPYRIGHT

Top


Regexp-HTMLify documentation  | view source Contained in the Regexp-HTMLify distribution.