Refined filtering of invalid url with Regex