Absolutely - in fact asking whether that regex was a good way of matching all characters in an input might be a good interview question.