title: How to find if there are any special characters in an input
body: <p>For the third elif i am trying to make it so it detects if there are any special characters in 'Numb' and if there is repeat the while loop.</p>
  
  <p>I have tried using re.match with import re but it doesn't seem to be working</p>
  
  <pre><code>Numb = input('Enter the number you want to find the factorial of: ')
  
  if Numb.isalpha() == True:      
      print ('You can\'t find the factorial of a letter stupid! Try a digit 
  next time')
  elif int(Numb) &lt;0:
      print ('You cannot find the factorial of a negative number')
  elif Numb &gt;=0 and Numb.isdigit() == True:
      print ('::::::::::::::::' ':'*len(Numb))
      print ('you have chosen', Numb)
      print ('::::::::::::::::' ':'*len(Numb))
      Con +=1
  elif re.match("^[a-zA-Z0-9]*$", Numb):
      print ('Do not enter any special characters. e.g. \' \' or \'.\'')
  
  else:
      print ('Please entar an integer that is 0 or above')
  </code></pre>
  
  <p>Any help would be much appreciated, i am still pretty new to this</p>