Why not simply $company_name =~ s/ /%20/g;
Hope this helps, -gjb-
In reply to Re: Encoding a URL with regular expressions? by gjb in thread Encoding a URL with regular expressions? by Anonymous Monk