Free random code generator

Patterns documentation

Back to the generator

When defining the permissible character sets of which the code is to consist, you can directly enter the characters you wish to be included or use patterns. Below is a list of the allowed patterns that may be used, together with their name and the exact list of the character set they contain.

Allowed patterns list

\\ -Backslash
\
\d -All digits
0123456789
\o -Odd digits
13579
\e -Even digits
02468
\l -Small letters
abcdefghijklmnopqrstuvwxyz
\L -Capital letters
ABCDEFGHIJKLMNOPQRSTUVWXYZ
\v -Small vowels
aeiouy
\V -Capital vowels
AEIOUY
\c -Small consonants
bcdfghjklmnpqrstvwxz
\C -Capital consonants
BCDFGHJKLMNPQRSTVWXZ
\h -Small hexadecimal
0123456789abcdef
\H -Capital hexadecimal
0123456789ABCDEF
\s -Small safe characters
369bcdhkmnprswxyz
\S -Capital safe characters
369CEFHKLMNPRWXY
\@ -Symbols
!"#$%&'()*+,-./:;<=>?@[]^_`{|}~

If you'd like to create variable length code you can use the ? modifier added after the \ character. This modifier causes a character from the defined set to appear in place of the selected character, or the character can be omitted making the generated code shorter.

\?\ - Backslash or skip this character
\
\?d - All digits or skip this character
0123456789
\?o - Odd digits or skip this character
13579
\?e - Even digits or skip this character
02468
\?l - Small letters or skip this character
abcdefghijklmnopqrstuvwxyz
\?L - Capital letters or skip this character
ABCDEFGHIJKLMNOPQRSTUVWXYZ
\?v - Small vowels or skip this character
aeiouy
\?V - Capital vowels or skip this character
AEIOUY
\?c - Small consonants or skip this character
bcdfghjklmnpqrstvwxz
\?C - Capital consonants or skip this character
BCDFGHJKLMNPQRSTVWXZ
\?h - Small hexadecimal or skip this character
0123456789abcdef
\?H - Capital hexadecimal or skip this character
0123456789ABCDEF
\?s - Small safe characters or skip this character
369bcdhkmnprswxyz
\?S - Capital safe characters or skip this character
369CEFHKLMNPRWXY
\?@ - Symbols or skip this character
!"#$%&'()*+,-./:;<=>?@[]^_`{|}~