When Chomsky Met JavaScript: Exploring the Linguistics(...)
summary
History traces regular expressions from Chomsky’s grammars to JavaScript and claims that the key design choice is the forgetfulness of regular grammars which makes regexes ideal for piecewise pattern matching. Concrete examples show 01 and call(ing|s|ed) plus an anecdote about Kafkes/Kafkis spelling. JavaScript additions are explicit: back references break regularity and cost performance and quantifiers (star, plus, question) control greediness, with a live “Ha(\\1)” example demonstrating repeated-substring matching.
AI-written summary · about
chapters (8)
- 0:00Intro
- 0:29Regular Expressions
- 2:13The Chomsky Hierarchy
- 3:43Parseltongue
- 5:37Regular grammar
- 7:56Regular expressions in programming
- 11:31Regular expressions in JavaScript
- 12:16Back references in JavaScript
related talks
22mTwo Problems: Regular Expressions for Revolutionaries
01h 06mEverybody stands back! I know regular expressions
01h 13m/ Reg (exp) {2} lained / Demystifying Regular Expressions
50mHow JavaScript Happened: A Short History of Programming Languages
23mLinear Matching of JavaScript Regular Expressions
05mRegular expressions my secret love
25mFormal Verification for JavaScript Regular Expressions: A Proven Mechanized Semantics(…)
24mSolving String Constraints with Regex-Dependent Functions through Transducers wi
