2012-04-28 5 views

答えて

2

確か:通常の文字列操作でその行を分離し、その行だけをre.search()に渡します。例えば

lines = data.split('\n') 
a = re.search('regex', lines[3]) 
関連する問題