use Text2URI; my $t = new Text2URI(); # sane as new Text2URI( encoding => 'UTF-8' ); 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.
Simple but effective transform text to a "url friendly" string! Just it
Text2URI - Transform text to a "url friendly" string
Text::Unaccent - Remove accents from a string. I'm using this since v0.3001 because lots of plataforms broken with ASNCI/Translit.
Renato Cron <email@example.com>
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.