Regex For Numbers, Letters, Spaces and Hyphens Only

Regex For Numbers, Letters, Spaces and Hyphens Only

I need a Regex For Numbers, Letters, Spaces and Hyphens Only.
Something like this
^[a-zA-Z0-9]+$
gets letters and numbers but I need one for the above. These are really hard to understand!

Solutions/Answers:

Solution 1:

This is what you need:

/^[0-9A-Za-z\s\-]+$/

References

Related:  Capturing text after a certain character in a string python