regex for email parsing in python
<p>i'm asked to write regular expression which can catch multi-domain email addresses and implement it in python. so i came up with the following regular expression (and code;the emphasis is on the regex though), which i think is correct:</p>

<pre><code>import re
regex = r'\b[\w|\.|-]+@([\w]+\.)+\w{2,4}\b'
input_string = "hey my mail is abc@def.ghi"
match=re.findall(regex,input_string)
print match
</code></pre>

<p>now when i run this (using a very simple mail) it doesn't catch it!! 
instead it shows an empty list as the output. can somebody tell me where did i go wrong in the regular expression literal?</p>