Report question

Question: How do I verify that a string only contains letters, numbers, underscores and dashes?