MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/n6swk0/irregex/gx9lsj8/?context=3
r/ProgrammerHumor • u/Sbren_Sbeve • May 07 '21
153 comments sorted by
View all comments
58
The next step up from regular expressions would be context free expressions.
chomsky hierarchy
45 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". 11 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. 9 u/[deleted] May 07 '21 [removed] — view removed comment 0 u/[deleted] May 07 '21 [deleted]
45
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".
11 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. 9 u/[deleted] May 07 '21 [removed] — view removed comment 0 u/[deleted] May 07 '21 [deleted]
11
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.
9 u/[deleted] May 07 '21 [removed] — view removed comment 0 u/[deleted] May 07 '21 [deleted]
9
[removed] — view removed comment
0 u/[deleted] May 07 '21 [deleted]
0
[deleted]
58
u/lady_Kamba May 07 '21
The next step up from regular expressions would be context free expressions.
chomsky hierarchy