Implement customRegex params to be more flexible