title: What should be the type of string for regex: '\S+?@\S+'
body: <p>Let us say given string is:
  From stephen.marquard@uct.ac.za Sat Jan  5 09:14:16 2008</p>
  
  <p>According to me answer should be:  d@uct.ac.za
  because Number of non-whitespace characters should be lazy greedy(as few as possible) hence.
  But python says: stephen.marquard@uct.ac.za </p>
  
  <pre><code>import re
  hand = open('textfile.txt')
  for line in hand:
      line=line.rstrip()
      x=re.findall('\S+@\S+',lin)
      if x:
        print x
  </code></pre>
  
  <p>and textfile.txt is:</p>
  
  <pre><code>From stephen.marquard@uct.ac.za Sat Jan  5 09:14:16 2008
  </code></pre>