DEV Community

Discussion on: /^15 Things to Know About Regex$/

Collapse
 
fjones profile image
FJones • Edited

Two things I would point out is that, algorithmically, regex becomes substantially more complex through lookaheads and readbehinds, and that many features are just syntactic sugar (the basic regex feature set can be expressed exclusively through anchoring, concatenation, alternation, and the Kleene star - classes, wildcards, optional, plus all transform into those basic instructions, and even anchoring is more of an instructional constraint).

(also also, side note: Never validate an email against regex. Never parse HTML with regex. Thanks. :p )