3 ms·
> Perl's regular expressions to parse […] To be fair, Tcl has Henry Spencer’s regexp[0][1], and is awesome; Postgres also base their regex on Henry’s work for
by bch 2y ago
> Perl's regular expressions to parse […]
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 https://en.wikipedia.org/wiki/Henry_Spencer
[1] https://wiki.tcl-lang.org/page/Regular+Expressions https://wiki.tcl-lang.org/page/Regular+Expressions
[2] https://github.com/postgres/postgres/blob/master/src/backend/regex/COPYRIGHT https://github.com/postgres/postgres/blob/master/src/backend...
[3] https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags#1732454 https://stackoverflow.com/questions/1732348/regex-match-open...
- thesuperbigfrog 2y ago>> 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 https://www.grymoire.com/Unix/Csh.html), so practically all scripting was Perl or occasionally AWK.