Search⌘ K
AI Features

Types of Regular Expressions

Explore the two main types of regular expressions: POSIX and PCRE. Understand their origins, standards, and how JavaScript implements a subset of PCRE for flexible text processing.

You can probably classify RegExps in very different ways, but, if you look at the way they were created (and that is what we’re doing in this chapter), there are two main groups:

  1. POSIX

  2. Perl Regular Expressions

POSIX

POSIX stands for Portable Operative System Interface, and it is basically a set of standards defined for the creation of new OS or tools that need to be compatible with them. By following ...