Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/phoet/rebuil
- Owner: phoet
- Created: 2010-01-11T20:25:56.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-02-07T15:03:19.000Z (over 14 years ago)
- Last Synced: 2024-05-01T22:35:56.022Z (6 months ago)
- Language: Ruby
- Homepage: http://blog.nofail.de/2010/02/writing-your-own-dsl-with-ruby/
- Size: 88.9 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.textile
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.