Skip to content

Latest commit

 

History

356 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Topics

Resources

Stars

244 stars

Watchers

7 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages