regex

Linear time regex matching

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Tags

Installation

nimble install regex
choosenim install regex
git clone https://github.com/nitely/nim-regex

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
regex - - - - - -

Source

Repository https://github.com/nitely/nim-regex
Homepage https://github.com/nitely/nim-regex
Documentation View Documentation
Registry Source nimble_official

README

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
  • Supports compiling regex at compile-time
  • Supports matching at compile-time
  • 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