Skip to content

Commit

Permalink
More detail on supported groups
Browse files Browse the repository at this point in the history
Basically, the gem now supports everything group-related, yay!
  • Loading branch information
tom-lord committed Jan 13, 2015
1 parent 51495bb commit f0fb80a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ or a huge number of possible matches, such as `/.\w/`, then only a subset of the
* Boolean "Or" groups, e.g. `/a|b|c/`
* Character sets (inluding ranges and negation!), e.g. `/[abc]/`, `/[A-Z0-9]/`, `/[^a-z]/`
* Escaped characters, e.g. `/\n/`, `/\w/`, `/\D/` (and so on...)
* Capture groups, including named groups and backreferences(!!), e.g. `/(this|that) \1/` `/(?<name>foo) \k<name>/`
* Non-capture groups, e.g. `/(?:foo)/`
* Capture groups, e.g. `/(group)/`
* Including named groups, e.g. `/?(<name>group)/`
* ...And backreferences(!!!), e.g. `/(this|that) \1/` `/(?<name>foo) \k<name>/`
* Groups work fine, even if nested! e.g. `/(even(this(works?))) \1 \2 \3/`
* **Arbitrarily complex combinations of all the above!**

## Not-Yet-Supported syntax
Expand Down

0 comments on commit f0fb80a

Please sign in to comment.