Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. output = ""
  2. fixeddocuments = []
  3. for individualdocument in seperateddocuments:
  4.     regexp = re.compile("<TEXT>(.*?)</TEXT>", re.S)
  5.     for occurrance in regexp.finditer(individualdocument):
  6.         output += occurrance.group(1)
  7.         print (individualdocument +"<TEXT>" + output + "</text>")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement