Nim MIT

nim-regex

Pure Nim regex engine. Guarantees linear time matching

N

nitely

Dernière activité 25 août 2026
nitely/nim-regex

244

étoiles

21

forks

19

issues ouvertes

nimnim-langnim-regexregexregex-engineregular-expressions

Ce README est souvent en anglais.

Regex

Build Status licence

A library for parsing, compiling, and executing regular expressions at both runtime and compile-time.

Features:

  • The match time is linear in the length of the input string
  • Compile-time regex syntax validation
  • Runtime and Nim VM (compile-time) support
  • Unicode level-1 support
  • Descriptive error messages
  • PCRE syntax and semantics

Install

nimble install regex

Compatibility

Nim +1.6.0

Docs

Read the docs

Tests

nimble test

Debugging

Compile with -d:regexDotDir:. to generate dot files of the regexes (NFAs) within the nim file. A dot file can be viewed in Graphviz. Requires Nim +1.2.

LICENSE

MIT

Projets similaires

An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.

Rustautomataautomatondfa
Rrust-lang
4 k étoiles536

A regex implementation for the zig programming language

Zigregexregex-enginezig
Ttiehuis
251 étoiles29

High-performance regular expression matching library

C++regex
Iintel
5,5 k étoiles816