Removed redundant \d and character class boundaries in regex.