test regex on stdin

and reomve the "Ok." when there is no error.