URL Slug Regular Expression

Category: URI | Views Total: 0 views

A regular expression to parse and validate user-friendly URL slugs.

/^[a-z0-9]+(?:-[a-z0-9]+)*$/

URL Slug Examples:

  • url-slug-regular-expression
  • url-slug

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)
Category: URI

Leave a Reply