If you want to track it back, there's COMIT, the first serious text processing language. IIRC, it dates to the 1950's, and was the predecessor to SNOBOL. (Gloat: And I have a copy of the manual!) Dale