in reply to Why aren't perl regular expressions really regular expressions?

Simplified: real regular expressions have a narrowly defined semantic and are implemented as a state machine while perl emulates this with kind of op-codes for higher flexibility and richer syntax (like mentioned \1 back reference or embedded perl code)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

update

For clarification:

\1 (mainly match part) is not to be confused with $1 (only replace part) of s/match/replace/

  • Comment on Re: Why aren't perl regular expressions really regular expressions?
  • Download Code