This is simple:
^[\w ]+$
Explanation:
^ matches the start of the string \w matches any letter, digit, or _, the same as [0-9A-Za-z_] [\w ] is a set that that matches any character in \w, and space + allows one or more characters $ matches the end of the string
Guffa source share