Skip to content
Tim Bourguignon edited this page Jan 20, 2014 · 6 revisions

In order to make a block repeat itself, you have to use the AtLeast(int), AtMost(int) & Exactly(int) methods combined with the trigger Repeat and the closing tag Time(s).

You can use either:

  • Repeat.X.AtLeast(y).Times
  • Repeat.X.AtLeast(y).AtMost(y).Times
  • Repeat.X.Exactly(y).Times

The following will produce the regular expression (42){2,4}

var result = se
    .Repeat.Text("42").AtLeast(2).AtMost(4).Times
    .Generate();

The following will produce the regular expression (42){3}

var result = se
    .Repeat.Text("42").Exactly(3).Times
    .Generate();
Clone this wiki locally