Validation
URL Slug
Matches URL-friendly slugs (lowercase, hyphens)
/^[a-z0-9]+(?:-[a-z0-9]+)*$/
Type in the box above to test if your input matches the regex pattern.
Test Cases
Tags
#web
#url
#seo
Matches URL-friendly slugs (lowercase, hyphens)
Type in the box above to test if your input matches the regex pattern.