Fixed return type regular expression