Hacker News new | ask | show | jobs
by Hydraulix989 3555 days ago
I'll ask the "dumb question" then: What is a PCRE? How is it different than a "true" regex?
1 comments

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.