Skip to content

Pure Nim regex engine. Guarantees linear time matching

License

Notifications You must be signed in to change notification settings

ire4ever1190/nim-regex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
  • 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

About

Pure Nim regex engine. Guarantees linear time matching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nim 100.0%