Regex data generator

Create test data matching regular expressions for validation and debugging

Example regex patterns

Hex color value

/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/


URL

/^((https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/


IPv4 address

/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/


Morse code

/^[.-]{1,5}(?:[ ]+[.-]{1,5})*(?:[ ]+[.-]{1,5}(?:[ ]+[.-]{1,5})*)*$/