I need an expression that will only accept:
Spaces are not allowed either.<
This is a community wiki, an attempt to compile links to related questions about this "URL/SEO slugging" topic. Community is invited to contribute.
-this--is---a-test--
becomes this-is-a-test
spam123-spam-eggs-eggs1
reject eggs1-
, -spam123
, spam--spam