@RegExp()
New in 2.0Generate values based on regex pattern
Data TypesSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| regexp | — | — | Regular expression for value generation | |
| nullSampler | — | — | The null ratio, such as "1:2", indicates that generating a random value 3 times with an average of 1 time is null |
Usage
@RegExp(arg0,arg1)Generate value based on regex pattern with null ratio
Example:
@RegExp([a-z][a-z][0-9],1:2)
Output:
kK8null@RegExp(arg0)Generate value based on regex pattern
Example:
@RegExp([a-z][a-z][0-9])
Output:
kK8Cs9