Hacker News new | ask | show | jobs
by hvidgaard 3561 days ago
While it is true for Regular Languages (FSM) strict RegExs, it's hardly true for any contemporary implementation of RegExs. They have back references and other constructs that make them more powerful than a Regular Language, and thereby make it impossible to decide equivalence in the general case.
1 comments

Hence "not to be confused with PCREs", which most pseudo-regex implementations are based off of.
I'll ask the "dumb question" then: What is a PCRE? How is it different than a "true" regex?
PCREs are Perl Compatible Regular Expressions, they have backreferences and other constructs. Almost all languages that have Regular Expressions have similar constructs. "Computer Science" Regular Expressions are more limited and implement a "regular language" as defined in https://en.wikipedia.org/wiki/Chomsky_hierarchy. This gives some guarantees, which go out the window with PCREs.
Did you edit the comment? I cannot recall reading that at all, but I may have been in a hurry.
Nope, didn't change it!