in reply to Why aren't perl regular expressions really regular expressions?
They've answered the what, here's the why:
The 'regular languages' that could be defined in terms of those original 'regular expressions' were so limited as to be practically useless beyond the kind of pointless exams questions so beloved of academia.
They had to made irregular, to become useful. And despite that the purists hate the irregularity, they've not come up with anything better.
A bit like the Perl language itself; much of its power derives directly from its irregularity.
Rant:
|
|---|