Report question

Question: How can I check with a regex that a string contains only certain allowed characters?