Using Python to access web data

Week 2 – Regular expression green are regular expressions. yellow are just characters from text purple is the return result   Example 2: find email address From asuyama@wullal.com Sat Jul 17  02:17:01 2009 >> y = re.findall(“\S+@\S+”, x) >>print y [‘asuyama@wullal.com’] \S: non-whitespace character +: at least one before the @ sign, I want one […]

https://gengengblog.wordpress.com/2016/03/28/python-week-2-regular-expression/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s