Generate Strings from Regular Expressions
cross-browser testing tools
World's simplest online reverse regular expression generator for web developers and programmers. Just enter your regexp in the field below, press the Generate Text button, and you'll get a random text that matches your regexp. Press a button – invert a regexp. No ads, nonsense, or garbage.
Announcement: We just launched Online Math Tools – a collection of utilities for solving math problems. Check it out!
How many results?
Want to extract regex matches from text?
Use the regex matches tool!
Using an Inverse Regular Expression Generator in Cross-browser Testing
An inverse regex data generator can be useful if you're doing cross-browser testing. Usually, you write a regex to match the given data but this program reverses the problem and creates data for you that matches your regex. For example, if you have written a regular expression that matches emails and you need to generate test cases for it, then you can generate valid email addresses with this utility. You give it your email regular expression, and it will randomly find strings that match this regular expression. Similarly, you can use it to generate test cases for matching phone numbers, zip codes, signatures, or web addresses.
Looking for more web developer tools? Try these!
Pro tip: You can use ?input=text query argument to pass text to tools.