add ability to use regular expression groups