title: Using re to validate a email
body: <p>in python how do i fix this </p>
  
  <pre><code>import re
  
  rule = "[A-Z+][\@][A-Z+][\.][A-Z+]"
  
  inputu = input ("please enter your email:").upper()
  
  if re.search (rule, inputu):
      print ("Invalid")
  
  else:
      print ("Valid")
  </code></pre>
  
  <p>I want to try to make it so you can put A-Z then it looks for @ then A-z then . then A-Z</p>