Ejemplos de Slug de URL

Colección de ejemplos de slugs de URL válidos e inválidos para pruebas (solo minúsculas, números, guiones)

📝 Patrones Comunes de Slugs de URL

🟢 simple

Una lista de ejemplos de slugs de URL válidos e inválidos que muestran el formato correcto

# URL Slug Samples
# Copy one of these lines to test the Slug Validator

# --- Valid Slugs (Recommended) ---

# Simple single-word slugs
hello
world
blog
home
about
contact

# Multi-word slugs with hyphens
my-blog-post
hello-world
getting-started
web-development-guide
best-practices-for-coding

# Product slugs
product-name-123
amazing-widget-v2
premium-service-plan

# Article slugs
how-to-learn-programming
top-10-javascript-tips
understanding-async-await
introduction-to-machine-learning

# Category slugs
web-development
mobile-apps
data-science
cloud-computing

# Slugs with numbers
version-2-0
chapter-1
page-42
2023-annual-report

# Date-based slugs
2023-12-25-daily-update
2024-january-newsletter

# Short slugs
api
docs
faq
help

# SEO-friendly slugs
best-coffee-shops-nyc
seo-tips-for-beginners
healthy-recipes-for-kids

# --- Valid Slugs (With Underscores - less recommended) ---

my_first_post
user_profile_page
data_structures_101

# --- Invalid Slugs (Examples to test validation) ---

# Contains uppercase (invalid)
MyBlogPost
HelloWorld
JavaScriptTutorial

# Contains spaces (invalid - should use hyphens)
my blog post
hello world
user profile

# Starts or ends with hyphen (invalid)
-my-post
my-post-
-test

# Starts or ends with underscore (not recommended)
_my_slug
my_slug_

# Consecutive hyphens (not recommended)
my--blog--post
test---example

# Special characters (invalid)
hello@world
test.slug
slug#tag
user&profile

# Mixed invalid formats
My Blog Post!
user@profile-page
test_slug_123