fork download
  1. import re
  2.  
  3. source = '''
  4. <td>
  5. <span id="itemlist_obj09_ID">gte32</span>obg001</td>
  6. '''
  7. objid = 'obg001'
  8.  
  9. for s in source.split('\n'):
  10. if re.findall(objid, s):
  11. print(s)
Success #stdin #stdout 0.03s 9600KB
stdin
Standard input is empty
stdout
<span id="itemlist_obj09_ID">gte32</span>obg001</td>