add regex pattern.