/rebuil

A Regular Expression Builder

Primary LanguageRuby

Rebuil – A Regular Expression Builder

A readable DSL for Ruby Regexp.

Usage

match = rebuil("hello world") do
	many
	group("rebuil", :cool)
end.match('hello world with rebuil')

puts "#{match[:cool]} is cool" #=> rebuil is cool

Examples

See the examples folder or the tests for further reading.