I need an expression that will only accept:
Spaces are not allowed either.<
[A-z0-9-]+
But your question is confusing as it asks for letters and numbers and has an example containing a dash.