bug fix to regex a url