The regular expression is now customizable