I would like to have a regular expression that checks if a string contains only alphanumeric and hyphen.

This is my regular expression for alphanumeric validation only: 

`var numericReg = /^([a-zA-Z0-9]){1,20}$/;`

To which, I need to include hyphen and space too.

That means, value "`100-C09D10 A`" must also be possible to enter.