Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 580 Bytes

File metadata and controls

12 lines (8 loc) · 580 Bytes

Regex Examples (regexamples)

  • Generate: Generates n random strings that match the given regular expression pattern.
  • NewGenerator: Compiles a regex pattern into a reusable Generator, avoiding repeated parsing overhead when generating multiple batches.
  • Generator.Generate: Generates n matching strings from a pre-compiled Generator.
  • Generator.SetSeed: Sets a deterministic seed on the Generator so that subsequent calls produce the same sequence of strings.

Examples:

For examples of each function, please checkout EXAMPLES.md