How to restrict all characters except one small English letters, digits, dash character?

I want to restrict all characters except little English. letters + numbers + dashes.
Understand that to limit all except eng. letters should be [a-z0-9]. What you need to add the dash - don't know
March 23rd 20 at 19:45
1 answer
March 23rd 20 at 19:47
Solution
[a-z0-9—]

Find more questions by tags HTML