title: avoid regex [python]
body: <p>I'd like to know if it's a good idea avoid regex.</p>
  
  <p>actually I have avoided it in any case and some peoples has been giving me advice that i shouldn't avoid it, since if you know what means every thing like:</p>
  
  <blockquote>
    <blockquote>
      <p>[] '|' \A \B \d \D \W \w \S \Z $ * ? ...  </p>
    </blockquote>
  </blockquote>
  
  <p>it would be easy to read, right?  but i fell like avoiding regex i would have a more readable code.</p>
  
  <p>it gets more unreadable when it's bigger, example: <a href="http://code.djangoproject.com/browser/django/trunk/django/core/validators.py" rel="nofollow noreferrer">validators.py</a> </p>
  
  <pre><code>email_re = re.compile(
      r"(^[-!#$%&amp;'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&amp;'*+/=?^_`{}|~0-9A-Z]+)*"  # dot-atom
      r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*"' #     quoted-string
      r')@(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?$', re.IGNORECASE)  # domain
  </code></pre>
  
  <p>so, I'd like to know a reason to not avoid regex?</p>