Method RandomPattern
RandomPattern(Random)
Returns a valid (compiling) Pattern instance with random stuff inside. Be careful when applying random patterns to longer strings as certain types of patterns may explode into exponential times in backtracking implementations (such as Java's).
Declaration
public static Regex RandomPattern(Random random)
Parameters
Type | Name | Description |
---|---|---|
Random | random |
Returns
Type | Description |
---|---|
Regex |