v::slug()
Validates slug-like strings:
v::slug()->validate('my-wordpress-title'); // true v::slug()->validate('my-wordpress--title'); // false v::slug()->validate('my-wordpress-title-'); // false
See also: