Can someone help me write a regex that matches only all lower case letters plus hyphens.
Example: this-page-name
Mike Clark's pattern [a-z\-]+
would match -start-dash-double-dash---and-end-dash-
Maybe ^[a-z]+(-[a-z]+)*$
is little bit more precise.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With