URL::Transform::using::CSS::RegExp - regular expression parsing of the text/css for url transformation
text/css
my $urlt = URL::Transform::using::CSS::RegExp->new( 'output_function' => sub { $output .= "@_" }, 'transform_function' => sub { return (join '|', @_) }, ); $urlt->parse_string("background: transparent url(/site/images/logo.png)"); print "and this is the output: ", $output;
Performs an url transformation inside text/css using regular expressions.
This module is used by URL::Transform.
output_function transform_function
Object constructor.
Requires:
Submit meta content string for parsing.
Slurps the file and call $self->parse_string($content).
Jozef Kutej
To install URL::Transform, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URL::Transform
CPAN shell
perl -MCPAN -e shell install URL::Transform
For more information on module installation, please visit the detailed CPAN module installation guide.