onlinestringtools logo
build

String from regex generator

World's simplest string tool

Free online string from regex generator. Just load your regex and it will automatically generate strings that match it. There are no ads, popups or nonsense, just a string from regex generator. Load a regular expression, get a string. Created by developers for developers.
settings
swap_horiz
star
Can't convert.
An error has occured.
Export to Pastebin
Save as...
Copy to clipboard
Regular Expression
Enter your regular expression here
Generator
How many strings to generate?
help
String from regex generator tool What is a string from regex generator?
This tool generates a bunch of strings for the given regular expression. It's basically a reverse regular expression operation. Magic!
books
String from regex generator examples Click to use
Generate a timestamps
This regex generates AM/PM timestamps.
Required options
These options will be used automatically if you select this example.
Enter your regular expression here
Generate a pronouncable English word
This regular expression generates pronouncable English-looking words by making sure consonants follow vowels.
Required options
These options will be used automatically if you select this example.
Enter your regular expression here
Generate price tags
This regexp generates US dollar price tags.
Required options
These options will be used automatically if you select this example.
Enter your regular expression here
Generate SHA1 hashes
This regular expression generates SHA1 cryptographic hashes that match 40 character long hex strings.
Required options
These options will be used automatically if you select this example.
Enter your regular expression here
Generate random gibberish
This regex generates random 40 character long garbage as it matches absolutely any and all strings of length of 40.
Required options
These options will be used automatically if you select this example.
Enter your regular expression here
info
Pro tips Master online string tools
You can pass options to this tool using their codes as query arguments and it will automatically compute output. To get the code of an option, just hover over its icon. Here's how to type it in your browser's address bar. Click to try!
https://onlinestringtools.com/generate-string-from-regex?®ex=%281%5B0-2%5D%7C0%5B1-9%5D%29%28%3A%5B0-5%5D%5Cd%29%7B2%7D%20%28A%7CP%29M
dashboard
All string tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly URL-escape a string.
Quickly URL-unescape a string.
Quickly convert a string to HTML entities.
Quickly convert HTML entities to a string.
Quickly convert a string to base64 encoding.
Quickly decode a base64-encoded string.
Quickly quote a string with backslashes.
Quickly un-quote a backslash-quoted string.
Quickly generate a random string.
Quickly generate a string from the given regular expression.
Quickly split a string into pieces.
Quickly duplicate a string multiple times.
Quickly reverse a string.
Quickly find and replace parts of a string with a new string.
Quickly truncate a string to the given length.
Quickly left-trim and right-trim a string.
Quickly sort a list of strings in alphabetical, alphanumerical or numerical order.
Quickly convert a string to ROT13.
Quickly transpose a string.
Quickly remove spaces, tabs, and newlines from a string.
Quickly calculate a string's length.
Quickly convert a string to a binary string.
Quickly convert a binary string to a string.
Quickly convert a string to an octal string.
Quickly convert an octal string to a string.
Quickly convert a string to a decimal string.
Quickly convert a decimal string to a string.
Quickly convert a string to a hexadecimal string.
Quickly convert a hexadecimal string to a string.
Quickly convert a string to ASCII codes.
Quickly convert ASCII codes to a string.
Quickly convert a string to uppercase.
Quickly convert a string to lowercase.
Quickly extract string data from a JSON data structure.
Quickly extract all string data from a HTML page.
Quickly extract all string data from an XML document.
Quickly convert a CSV file to evenly aligned columns of space-separated strings.
Quickly convert strings to a proper CSV file.
Quickly extract all string data from a BBCode markup.
Quickly convert a string to Morse code.
Quickly convert Morse code to a string.
airport_shuttle
Coming soon These string tools are on the way
Replace Multiple Strings
Replace a set of strings with a new set.
Join Strings
Joins strings together with the given delimiter.
Randomize String's Case
Randomize letter case in a string.
Invert String's Case
Convert lowercase letters to uppercase, and uppercase to lowercase.
Title-case a String
Convert a string to a title with proper titlecase.
Capitalize Words in a String
Convert the first letter of every word in a string to uppercase.
Center a String
Given the length of a line, center a string.
Right-align a String
Align a string to the right.
Left-pad a String
Pad a string with characters on the left.
Right-pad a String
Pad a string with characters on the right.
Justify a String
Stretch out a string and Align it along the left and right margins.
Format a Multi-line String
Format and align a multi-line string.
Number of Letters in a String
Find how many letters there are in a string.
Number of Words in a String
Find how many words there are in a string.
Number of Lines in a String
Find how many lines there are in a multi-line string.
Number of Paragraphs in a String
Find how many paragraphs there are in a multi-line string.
Sort Words in a String
Sort all words in a string alphabetically.
Sort a Numeric String
Sort a string that contains only numbers.
String Frequency Analysis
Find most frequent words and phrases in a string.
Number a Multi-line String
Add line numbers to a multi-line string.
Prefix a String
Add a prefix to a string.
Suffix a String
Add a suffix to a string.
Shuffle Words in a String
Shuffle the order of all words in a string.
Extract Regex Matches
Extract all regex matches from a string.
Extract Emails from a String
Find and extract all email addresses from a string.
Extract URLs from a String
Find and extract all web addresses from a string.
Extract Numbers from a String
Find and extract all numbers from a string.
Generate String Statistics
Analyze string's complexity.
Convert a String to Punycode
Encode a string to punycode.
Convert Punycode to a String
Decode a string from punycode.
Base32-encode a String
Encode a string to base32.
Base32-decode a String
Decode a string from base32.
Base58-encode a String
Encode a string to base58.
Base58-decode a String
Decode a string from base58.
Base85-encode a String
Encode a string to Ascii85.
Base85-decode a String
Decode a string from Ascii85.
UTF8-encode a String
Encode a string to UTF8.
UTF8-decode a String
Decode a string from UTF8.
UTF16-encode a String
Encode a string to UTF16.
UTF16-decode a String
Decode a string from UTF16.
UTF32-encode a String
Encode a string to UTF32.
UTF32-decode a String
Decode a string from UTF32.
IDN-encode a String
Encode a string to IDN.
IDN-decode a String
Decode a string from IDN encoding.
Uuencode a String
Convert a string to Unix-to-Unix encoding.
Uudecode a String
Convert Unix-to-Unix data to a string.
Xxencode a String
Convert a string to Xxencoding.
Xxdecode a String
Convert an Xxencoded string to a regular string.
HTML-strip a String
Strip all HTML tags from a string.
Convert Spaces to Tabs
Convert all spaces in a string to tabs.
Convert Tabs to Spaces
Convert all tabs in a string to spaces.
Convert Spaces to Newlines
Convert a string to a column.
Convert Newlines to Spaces
Convert a multi-line string to a single-line string.
Remove Accent Characters
Remove all diacritical signs from a string.
Remove Duplicate Spaces
Normalize string spacing and remove all duplicate spaces.
Remove String Punctuation
Remove all punctuation from a string.
Printf a String
Apply the sprintf function on a string.
Diff Two Strings
Visualy compare and find differences between two strings.
String Levenshtein Distance
Calculate Levenshtein distance between two strings.
Rewrite a String
A tiny string rewriting system.
Generate a Zalgo String
Convert a string to Unicode mess.
Generate String Typos
Create a list of all possible string typos.
Palindrome String Checker
Check if the given string is a palindrome.
Grep, head, tail Multi-line Strings
Run grep, head and tail commands on multi-line strings, and more!