Skip to content

Dentosal/reregex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reregex, yet another minimal regex implementation

Many standard regex features are supported, such as non-greedy matching (e.g. .*?), character set ranges ([a-z]), alternations ((a|bb)+), and graphviz dot-formatted NFA-like diagrams.

Capture groups, Lookarounds and Unicode-aware features are not supported. The engine ins't particularly fast either.

Example: Visualize regex

cargo run --example dot -- '-?([1-9][0-9]*)?[13579]' > odd.dot
dot -Tpng odd.dot > odd.png

Visualization

Example: Grep

cat README.md | cargo run --example grep -- '`[^`]+`'

About

Minimal regex engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages