Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
xigoi
1y ago
0 comments
Save
Share
Why are they called regular expressions if they can parse non-regular languages?
0 comments
3 comments · 2 top-level
top
newest
oldest
donaldihunter
1y ago
· 1 in thread
The word 'regular' comes from the mathematical roots of automata and finite state machines.
moomin
1y ago
Which have a one to one correspondence with regular languages, so this isn’t actually an answer to the question.
db48x
1y ago
It’s gradually got so. <
https://youtu.be/JIlpjJnc6qY?t=54
>
Literally, Larry Wall was adding things to regexes all the way back before the release of Perl 2.
j
/
k
navigate · click thread line to collapse