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

With the Maybe method, you can specify that the argument is optional.

The following will for instance match http:// and https:// via the expression http(s)?://:

var result = se
    .Text("http")
    .Maybe("s")
    .Text("://")
    .Generate();
Clone this wiki locally