use `reg.pattern` here to print?