Fixed regexp for url replacing