in reply to Re^11: Grep Patternin thread Grep Pattern
Yes, that's exactly what should be done.
(Not to be more general, though. To be more robust (less error-prone), more self-documenting, etc, etc.)