Regex Resources

Many internet resources to learn and practice regular expressions.

Javascript Regex vs Standard PCRE

PCRE stands for “Perl Compatible Regular Expression”. It is a standardization of an enhanced kind of expression matching that started with the Perl language.

The regex tutorials are very good but use slightly “nonstandard” regular expression rules (Javascript not PCRE).

Notes:

  • Normal PCRE backreferences (referring to the match made by a previous group) are done with a backslash in front, like \1 refers to group 1. This is different from Javascript, where the same backreference is $1.
  • We will not have use for lookahead like (?! ...) or (?= ...).
Last modified March 15, 2024: Parsing unit. (015098c)