Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
Updating the documentation [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Sep 4, 2013
1 parent 8b1bb80 commit 53ed9c3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Hexpress
- [![Dependency Status](https://gemnasium.com/krainboltgreene/hexpress.png)](https://gemnasium.com/krainboltgreene/hexpress)
- [![Coverage Status](https://coveralls.io/repos/krainboltgreene/hexpress/badge.png?branch=master)](https://coveralls.io/r/krainboltgreene/hexpress)


**NOTE**: This is not the [bvision/hexpress](https://github.com/bvision/hexpress) for slim rails packages!

The hexpress gem is another take at the concept of ["Verbal Hexpressions"]() in Ruby.


Expand Down Expand Up @@ -65,6 +62,16 @@ pattern = hexp.http.domain("amazon").tld("com")
pattern = hexp.ftp # ...
```

You can even do advanced composure of multiple patterns:

``` ruby
protocol = exp.start("http").maybe("s").with("://")
tld = exp.then(".").either("org", "com", "net")
link = exp.has(protocol).find { words }.including(tld)
```

Hexpressions are very flexible.

Installing
==========

Expand Down

0 comments on commit 53ed9c3

Please sign in to comment.