modified the regex pattern