Skip to content
Tim Bourguignon edited this page Mar 10, 2014 · 8 revisions

In order to group elements e.g. simulate "(" and ")" you need to wrap one or more functions with one of the following constructs: Group.XYZ.Together or Group.XYZ.Together.As(string). In the first case, the group is anonymous, in the second, the group is given the parameter of the As(string) as a name.

Here's how to group a matching of all the vowels together:

var result = se
    .Group
        .Text("aei")
        .Text("ou")
    .Together
    .Generate();

var result = se
    .Group
        .Text("aei")
        .Text("ou")
    .Together.As("vowels")
    .Generate();
Clone this wiki locally