Hacker News new | ask | show | jobs
by coldtea 2766 days ago
>Well, most commonly used features like back-references allow to define not-regular language, so there is nothing funny that most regular expression engines are not "regular".

The funny thing is that they're still called regular.

1 comments

Would it make sense to classify them as irregular expressions?
Maybe, but there's an actual hierarchy of languages (or grammars) based on expression capability -- regular languages are at the base.

There's (in more powerful order): context-free, context-sensitive, recursively-enumerable.

https://en.wikipedia.org/wiki/Chomsky_hierarchy

I think most people call them extended regular expressions.