Corecting logical error in regex
typo