Regex Engine
GitHub
This library implements a simple regular expression engine in Scala.
Implementation
The library uses Scala’s postfix operations to implement basic regular expressions
as a DSL.
The DSL produces an NFA, which can then be compiled into DFA.
At which point we can obtain a stream of matches from a given input.
Matches are greedy i.e. if there are two possible matches from a given point in
the input, the longer match will be returned from the stream.
Examples
Further Reading
For my introduction to regular expressions, click here.
For more information about the process of writing regex-engine, see my series of articles: