Need help with nim-regex?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

nitely
135 Stars 15 Forks MIT License 242 Commits 15 Opened issues

Description

Pure Nim regex engine. Guarantees linear time matching

Services available

!
?

Need anything else?

Contributors list

# 53,491
Nim
CSS
django-...
Django
224 commits
# 28,614
Nim
repl
procedu...
macros
7 commits
# 77,835
Nim
zig
benchma...
test-fr...
4 commits
# 251,870
Shell
genome-...
Amazon ...
cython
1 commit
# 9,160
Nim
Shell
Rust
tutoria...
1 commit
# 24,110
Emacs
emacs-l...
hugo
Bootstr...
1 commit

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 (optionally) compiled at compile-time
  • Captures all group repetitions (not just the last one)
  • Unicode level-1 support
  • Descriptive error messages
  • Supports matching at compile-time (Nim +0.20)

Install

nimble install regex

Compatibility

Nim +0.19.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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.