Nothing is uploaded. Just open it and start.
Lowercase letters and digits in words joined by single hyphens, as used in web addresses.
/^[a-z0-9]+(?:-[a-z0-9]+)*$/
^the start of the text[a-z0-9]+one of a–z, 0–9, repeated 1 or more times, as many as possible(?:a group (not captured)-the character “-”[a-z0-9]+one of a–z, 0–9, repeated 1 or more times, as many as possible)*end of the group, repeated 0 or more times, as many as possible$the end of the text| Text | Result |
|---|---|
| hello-world | Matches |
| regex-tester | Matches |
| post-2026 | Matches |
| Hello-World | Doesn't match |
| -leading | Doesn't match |
| double--hyphen | Doesn't match |
| trailing- | Doesn't match |
Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.