Understanding re.search in Python
<p>I am trying to allow users to Enter alphanumerics,underscores and spaces for a name.
I've been using <code>if not re.search(r'^[\w-]+$', name):</code> to check if the name has anything other than alphanumerics,underscores and spaces. But here I can just enter one word, not multiple. What am I doing wrong?</p>
