fix rewrite links regular expression string