Simplified the regular expression as suggested in PR.