regex pattern test fix