Skip to content
Tim Bourguignon edited this page Mar 9, 2014 · 1 revision

The And(string) and Except(string) functions are used to modify the content of a previously defined function. For instance to add a minus - characters to an alphanumeric string you would do:

var result = se
    .Alphanumerics
    .And("-")
    .Generate()

Similarly, Except(string) would remove characters from the ensemble:

var result = se
    .Letters
    .Except("a")
    .Generate()

Nota: currently only works with letters.

Clone this wiki locally