Update regex pattern