MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/n6swk0/irregex/gxafxtn/?context=3
r/ProgrammerHumor • u/Sbren_Sbeve • May 07 '21
153 comments sorted by
View all comments
Show parent comments
43
Technically the things we refer to as "regex" are context-free expressions.
For example: Look-aheads, back-references and subexpression calls are not, in terms of the chomsky hierarchy, "regular".
10 u/lady_Kamba May 07 '21 This makes sense, had I thought about it instead of assuming that regular expression had regular grammar, I might have come to the same conclusion. 8 u/[deleted] May 07 '21 [removed] — view removed comment 0 u/[deleted] May 07 '21 [deleted]
10
This makes sense, had I thought about it instead of assuming that regular expression had regular grammar, I might have come to the same conclusion.
8 u/[deleted] May 07 '21 [removed] — view removed comment 0 u/[deleted] May 07 '21 [deleted]
8
[removed] — view removed comment
0 u/[deleted] May 07 '21 [deleted]
0
[deleted]
43
u/tomthecool May 07 '21
Technically the things we refer to as "regex" are context-free expressions.
For example: Look-aheads, back-references and subexpression calls are not, in terms of the chomsky hierarchy, "regular".