TRAC
TRAC was an early text-processing language based on pattern matching and recursive text expansion.
TRAC (Text Reckoning and Compiling) was created in 1959 by Calvin Mooers as a general system for text manipulation. It was among the first languages designed entirely around pattern matching and text substitution, with features that anticipated modern ideas about macro expansion and domain-specific languages. TRAC was used for document preparation, program generation, and other text tasks, and influenced the development of Unix tools like grep, sed, and regex engines.