Skip to content

tokuhirom/rockre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RockRE

Perl6 compatible regular expresssion engine in C++

Supported syntax

a||b   alternative
.     anychar
(a)   capture
[a||b] grouping
^     string head
$     string tail
?     one or zero
*     one or more
+
^^        line head
$$        line tail
*?        zero or more(non greedy)
+?        one or more(non greedy)
??        one or zero(non greedy)
<[ ]>     character class

Unsupported (yet) syntax

'quoted'
.**2
\d
\s
\S
\N

a | b     longest match

Implementation details

Current version of RockRE supports naive NFA engine.

HACKING TIPS

Run tests with verbose output.

make test ARGS="-V"

See also

About

Perl6 compatible regular expression library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published