Modified regex pattern