regex matches but doesn't print