in reply to How is this printing?

Yes, but you don't have to worry about that with a while loop, since it ends as soon as it fails to find a match.