Strgen

String generator

Logs
Generate from list
Options
Documentation

Pattern:


Options
Duplication options

Logging options

Quantifier options

Preset options

See the documentation or reference for more information about the presets.

Reset values.
Preset
Preset values
View Logs
Generate from list

Enter values below (separated by commas, or comma and new line) to select from randomly.

Reference

Click on the example patterns below, or enter a pattern above, to generate a string.

To generate a string containing 10 characters from "a" to "z":

[a-z]{10}

To generate a string using a quantifier between 3 and 6:

[a-z]{3,6} or [a-z]{3:6} or [a-z]{3-6}

To generate a string using a quantifier between 0 and 4:

[a-z]{:4} or [a-z]{0:4} (can also be done using ',' and '-')

To generate a string using a symbol quantifier:

  • [a-z]?, a? - to generate using a quantifier of 0 or 1
  • [a-z]*, b* - to generate using a quantifier of 0 or 10 (can be changed in the options tab)
  • [a-z]+, c+ - to generate using a quantifier of 1 or 10 (can be changed in the options tab)

To generate a string that uses fixed text:

text[a-z]{10}

To generate a string from the combination of two other strings:

(word1&word2)

To pick a string from a set of two strings:

(word1|word2)

The following will pick a character from a predefined set of characters:

  • \w - word characters
  • \p - punctuation characters
  • \d - digits
  • \c - lower case characters
  • \u - upper case characters
  • \l - letters
  • \h - hex digits (lower case)
  • \H - hex digits (upper case)
  • \o - octal digits
  • \s - white space

For example:

[\w]{10}