Added custom regexes option