From 53ed9c3418ba47d399014fd161bf1a95cc3b6805 Mon Sep 17 00:00:00 2001 From: Kurtis Rainbolt-Greene Date: Wed, 4 Sep 2013 11:24:58 -0700 Subject: [PATCH] Updating the documentation [skip ci] --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bc296ae..a7342d4 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 ==========