NAME

Text2URI

VERSION

version 0.3001

SYNOPSIS

use Text2URI;

my $t = new Text2URI();

print $t->translate("Atenção SomeText (0)2302-3234   otherthing    !!");
# atencao-sometext-0-2302-3234-otherthing

print $t->translate("Sell your house",'_');
# sell_your_house

# you can pass C<old_alphanumeric_regexp => 1> to alternate between C<\W+> or C<[^\w\.]+> regexp.
# default to old_alphanumeric_regexp => 0 that means C<[^\w\.]+>
# you can change it between calls too. $t->old_alphanumeric_regexp(1) to enable.

DESCRIPTION

Simple but effective transform text to a "url friendly" string! Just it

NAME

Text2URI - Transform text to a "url friendly" string

SEE ALSO

Text::Unaccent - Remove accents from a string. I'm using this since v0.3001 because lots of plataforms broken with ASNCI/Translit.

AUTHOR

Renato Cron <renato@aware.com.br>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Aware TI <http://www.aware.com.br>.

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