Regex is not function