Matches valid URL slugs (kebab-case).
^[a-z0-9]+(?:-[a-z0-9]+)*$
my-blog-post
Invalid Slug
Test and customize this pattern in our interactive editor