1.

Why Perl Patterns Are Not Regular Expressions?

Answer»

Perl patterns have back references
By the definition, a regular EXPRESSION should determine next state infinite automation without extra money to keep in previous state. State machine is required by the pattern / ([ab] +) C1/ to remember old states. Such patterns are disqualified as being regular expressions in the term’s classic SENSE.

Perl patterns have back references
By the definition, a regular expression should determine next state infinite automation without extra money to keep in previous state. State machine is required by the pattern / ([ab] +) c1/ to remember old states. Such patterns are disqualified as being regular expressions in the term’s classic sense.



Discussion

No Comment Found