Bỏ qua

Regular-expression generators

Warning

The current page still doesn't have a translation for this language.

But you can help translating it: Contributing.

Regular-expression patterns

RegexStringGenerator

Generate strings that match a regex pattern.

Why: Use RegexStringGenerator when a regular expression is the authoritative shape of a string value.

Category: core.

Output: str.

1
<key name="value" generator="RegexStringGenerator(pattern='[A-Z]{3}-[0-9]{4}')"/>

Parameters

  • pattern: str; Default required — Supported regular expression that every generated value must match.