add regular expression printing