Re:Expect – Linux tool for automating interactive programs
by thesuperbigfrog on Saturday August 31, 2024 @08:43AM
(#41408501)
>> Perl is certainly famous for its regex and popularizing thinking of problems in terms of regexes (for better or for worse), but it’s not the only game in town.
Agreed.
In that old system we did not have any TCL scripts or third-party libraries--just C, Perl, and C shell (no Bash; it was Unix).
C shell scripting is painful (https://www.grymoire.com/Unix/Csh.html), so practically all scripting was Perl or occasionally AWK.
To be fair, Tcl has Henry Spencer’s regexp[0][1], and is awesome; Postgres also base their regex on Henry’s work for Tcl[2]. Perl is certainly famous for its regex and popularizing thinking of problems in terms of regexes (for better or for worse[3]), but it’s not the only game in town.
[0] https://en.wikipedia.org/wiki/Henry_Spencer
[1] https://wiki.tcl-lang.org/page/Regular+Expressions
[2] https://github.com/postgres/postgres/blob/master/src/backend...
[3] https://stackoverflow.com/questions/1732348/regex-match-open...