title: Python logical NOT operator for regular expressions
body: <p>I tried searching for this answer online but I haven't found any luck. I am wondering if python supports a logical not operator (usually '!') in other languages for an if statement, or any control statement really. For example, I am looking to achieve this functionality.</p>
  
  <pre><code>if !(re.search('[0-9]', userInputVariable):
      fix error and report to user
  
  ...Proceed with rest of code...
  </code></pre>
  
  <p>Where basically if the user does not input a number I correct it to a default value and proceed with script</p>
  
  <p>Thanks!</p>