regex
Linear time regex matching
Summary
| Latest Version | 0.26.3 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-02 07:21 |
Tags
Authors
- Esteban Castro Borsani (@nitely)
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 | ✓ | ✓ | ✓ | - | - | - | - | - | - | ✓ |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.6.0 | No |
| unicodedb >= | 0.13.2 | No |
Source
| Repository | https://github.com/nitely/nim-regex |
|---|---|
| Homepage | https://github.com/nitely/nim-regex |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
Regex
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
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