Regex to create clean slug

PHOTO EMBED

Fri Dec 03 2021 08:29:37 GMT+0000 (UTC)

Saved by @swina #php #javascript

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