Skip to content

SamuelYvon/greggex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Greg, the small regex engine that could

Some help from
- https://swtch.com/~rsc/regexp/regexp1.html
- https://en.wikipedia.org/wiki/Regular_expression


## Syntax

 <expr> : (<group><modifier>?|<char><modifier>?|<char-group><modifier>?|<any-match><modifier>?)*
 <any-match> : .
 <group> : (<expr>(|<expr>)*)
 <char> : 0-9, a-z, A-Z, !@#$%&*, \<escaped char>
 <char-group> : [ (<range-expr> | <char>)* ]
 <range-expr> : a-a
 <escaped-char>: ,^,$,{,},(,),[,],
 <modifier>: *,+,{l,h},{e}

About

Regexes for fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages