Skip to content

nitely/nim-regex

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 21, 2020 18:12
August 13, 2023 18:44
src
August 13, 2023 17:35
August 13, 2023 16:41
August 13, 2023 16:41
August 13, 2023 19:52
January 12, 2018 17:23
August 13, 2023 18:47
August 13, 2023 19:52

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
  • Unicode level-1 support
  • Descriptive error messages
  • Supports matching at compile-time (Nim +0.20)
  • PCRE syntax and semantics

Install

nimble install regex

Compatibility

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