Hoozuki (鬼灯)

A hobby regex engine written in Ruby. Designed to be simple and efficient for educational purposes. Currently supports 2 engines:
- DFA Based Engine
- VM Based Engine
Installation
gem install hoozuki
Usage
require 'hoozuki'
regex = Hoozuki.new('a(bc|de)*f') # Or Hoozuki.new('a(bc|de)*f', engine: :dfa) for DFA based engine
regex.match?('abcdef') # => true
regex.match?('adef') # => true
regex.match?('xyz') # => false
If you want to use the VM based engine:
require 'hoozuki'
regex = Hoozuki.new('a(bc|de)*f', engine: :vm)
regex.match?('abcdef') # => true
regex.match?('adef') # => true
regex.match?('xyz') # => false
License
This project is licensed under the MIT License. See the LICENSE file for details.