update regex pattern