Conversation
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
An actual regular expression is a grammar for a regular language:
brilliant.org/wiki/regular-l
Most implementations (Perl-style, etc.) are cursed and support a lot more via state machine hacks (backreferences, etc.).
re2, Go regexp and Rust regex are actually always regular.
2
10
re2, Go regexp and Rust regex also make sure to provide an O(n) time complexity guarantee.
It's also possible to use an index for the approach they use to make it really fast for a search engine:
swtch.com/~rsc/regexp/re
That's how this works:
codesearch.debian.net

