5
【 以下文字转载自 Programming 讨论区 】
发信人: wds (中原一点红:心开运就通,运通福就来), 信区: Programming
标 题: python regexp question
发信站: BBS 未名空间站 (Sat Jan 4 19:47:38 2014, 美东)
for a line like this, how to get ABT ?
http://www.nyse.com/about/listed/lcddata.html?ticker=abt">ABT |
i did this, not working,
matchObj = re.search(r"
* | ", eachLine)
if matchObj:
print matchObj.group(3)
Many thanks !