Function: stringMatching()
stringMatching(
regex,constraints?):Arbitrary<string>
Defined in: packages/fast-check/src/arbitrary/stringMatching.ts:214
For strings matching the provided regex
Parameters
| Parameter | Type | Description |
|---|---|---|
regex | RegExp | Arbitrary able to generate random strings (possibly multiple characters) |
constraints | StringMatchingConstraints | Constraints to apply when building instances |
Returns
Arbitrary<string>
Remarks
Since 3.10.0