Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29904

Extracting part of the email address by using Python regular expression

$
0
0

I have the following string:

'iamgood@yahoo.com, cc.a@est.gov.cn, j_193@ywuancjds.com, super.hard.bb@ililsa.bi'

I want to extract com, gov, com, bi.

I wrote (?<=@)\w+ regex, but it turn out to extract yahoo,est,ywuancjds,ililsa. I don't know how to include the vocabulary behind @.


Viewing all articles
Browse latest Browse all 29904

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>