Modify cconv.groovy to be able to use regular expression