Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocs
Web
#slug
#url
#web
#cms

URL Slug

Valid URL slug — lowercase alphanumeric characters separated by single hyphens, no leading or trailing hyphens.

CMS permalink generationURL route validationSEO slug sanitization
/
/
Test String
4 matches
[…]+Character class […]Matches any single character listed in this set — repeated one or more times (greedy) · + — one or more times (greedy)
a-za-za-z — range from 'a' to 'z'
0-90-90-9 — range from '0' to '9'
(?:…)*Non-capturing groupNon-capturing group — groups without capturing (no index assigned) — repeated zero or more times (greedy) · * — zero or more times (greedy)
--'-' — literal character
[…]+Character class […]Matches any single character listed in this set — repeated one or more times (greedy) · + — one or more times (greedy)
Pattern: 24 charsInput: 39 chars
100% client-side · private

Valid Examples

  • my-blog-post
  • hello
  • article-123
  • regex-to

Invalid Examples

  • My-Post
  • -starts-with-hyphen
  • ends-with-hyphen-
  • has--double