-
Notifications
You must be signed in to change notification settings - Fork 0
Repetition
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).TimesRepeat.X.AtLeast(y).AtMost(y).TimesRepeat.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();