Update regular expression to safer one.