@RegExp()

New in 2.0

Generate values based on regex pattern

Data TypesSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
regexpRegular expression for value generation
nullSamplerThe 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
← Back to Function Reference