Here is the text that I want to apply my code to:
text = From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008
and I am using this regular expression: y = re.findall('\S+?@\S+',text) so that I can output
'd@uct.ac.za' but instead it is returning 'stephen.marquard@uct.ac.za'. Can you please explain to me why the '?' is being ignored and how I could fix this code to get my desired result?