Skip to main content

Function: stringMatching()

stringMatching(regex, constraints?): Arbitrary<string>

Defined in: packages/fast-check/src/arbitrary/stringMatching.ts:214

For strings matching the provided regex

Parameters

ParameterTypeDescription
regexRegExpArbitrary able to generate random strings (possibly multiple characters)
constraintsStringMatchingConstraintsConstraints to apply when building instances

Returns

Arbitrary<string>

Remarks

Since 3.10.0