Skip to content

Alternative Regex Syntax

andychu edited this page Feb 17, 2022 · 41 revisions

This page lists projects that provide an alternative to traditional regex syntax, e.g. POSIX [[:digit:]]+ or Perl \d+.

It's freely editable, so please add your projects here.

Related: Alternative Shells

Regex / Regular Language Projects

Lisp-Like Syntax

Parsing Libraries

PEG, etc.

Smaller/Simpler Pattern Matching

Lua's Patterns - Lua's pattern-matching is a (deliberate) subset of something like POSIX regular expressions. As Roberto Ierusalimschy writes in Programming in Lua: "The main reason for this decision is size: a typical implementation of POSIX regular expressions takes more than 4000 lines of code, which is more than half the size of all Lua standard libraries together. In comparison, the implementation of pattern matching in Lua has less than 600 lines" (77, 4th edition).

Links

Clone this wiki locally