regex

Linear time regex matching


Keywords
regex, nim, nim-lang, nim-regex, regex-engine, regular-expressions
License
MIT
Install
nimble install regex

Documentation

Regex

Build Status licence

A library for parsing, compiling, and executing regular expressions.

Features:

  • The match time is linear in the length of the input string
  • Regular expressions are compiled at compile-time
  • Captures all group repetitions (not just the last one)
  • Unicode level-1 support

This is a WIP. API is not stable

Status

  • \pN
  • \PN
  • \p{Greek}
  • \P{Greek}
  • x group flag
  • \123
  • \x7F
  • \x{10FFFF}
  • Character classes matching as described in UTS#18
  • [[:alnum:]], etc
  • User friendly compiling errors
  • APIs (nre/re/re2/rust-regex API parity)

Docs

Read the docs

Tests

nimble test

LICENSE

MIT