fix matches regex pattern