removed getRegex methods