Hello,
I also need to remove "underscores" and "dashes" and "all other characters" from a query string and return only keywords with spaces, when using the encode_address as below.
sub encode_address {
my ($toencode) = shift;
$toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
return $toencode;
}
How to do?
thanks
I also need to remove "underscores" and "dashes" and "all other characters" from a query string and return only keywords with spaces, when using the encode_address as below.
sub encode_address {
my ($toencode) = shift;
$toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
return $toencode;
}
How to do?
thanks