Niels van Dijke > Regexp-HTMLify-0.002 > Regexp::HTMLify

Download:
Regexp-HTMLify-0.002.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.002   Source  

NAME ^

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

SYNOPSIS ^

    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 ^

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

LIMITATIONS ^

This library has the following limitations:

AUTHOR ^

Niels van Dijke <CpanDotOrgAtPerlboyDotNet>

TODO ^

NOTES ^

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

COPYRIGHT ^

Copyright (c) 2008-2011 Niels van Dijke mailto:CpanDotOrgAtPerlboyDotNet http://PerlBoy.net All rights reserved. This program is free software.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

syntax highlighting: