How to extract and manipulate text from docx file using python?

时间:2017-10-12 09:39:34

标签: regex python-3.x python-docx

I have a docx file which I converted into text using the docx2txt library.After that, I have to extract text in between.I used a regular expression for the task but it's just showing "[]" as output.

import  docx2txt
import  re
te=docx2txt.process("y.docx")

n=re.findall(r'Reg(.*?)Reg',te)
print(n)

0 个答案:

没有答案