in reply to Runtime Regexp Generation

Sounds like you're trying to reinvent ngrep to me.

Makeshifts last the longest.