RegexGenerator
Compatibility: text
data
The RegexGenerator
is used to create structured text. When transforming the data, it simply removes the column. When reversing the transform, it recreates the structured text in the column through a regex string.
You can specify the exact regex string to use for more realistic data.
Parameters
regex_format
: A string that represents a Regular Expression↗. This expression will be used to generate new data.
(default) | Generate 5-character strings such as |
| Use the specified regex string to generate new values. |
enforce_uniqueness
: Whether to guarantee that the created fake data will be unique
(default) | The generated data may contain repeating values |
| The generated data will not contain any repeating values |
generation_order
: Which order to use when generating the regexes (during the reverse transform)
(default) | Generate the data sequentially, or in alphanumeric order. For eg. |
| Generate the data sequentially but then scramble it before returning the results. For large batches of data, this is an effective way to achieve the notion of randomness. |
Examples
FAQs
Last updated