Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phoet/rebuil

A Regular Expression Builder
https://github.com/phoet/rebuil

Last synced: 26 days ago
JSON representation

A Regular Expression Builder

Awesome Lists containing this project

README

        

h1. Rebuil - A Regular Expression Builder

p. A readable DSL for Ruby "Regexp":http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html#UJ.

h2. Usage

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

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

h2. Examples

See the examples folder or the tests for further reading.