update regular expression and https