minor print format fix
fix regex logic