Hello,
I want to write a Pyhon macro to match regular expressions through an entire Writer document.
In other words, I got this small program I’d like to translate into a LO Writer macro:
import sys
import re
inputFile = sys.argv[1]
fdInput=open(inputFile,'ro')
reExp=re.compile('\n\n\n(\w.*)\n')
reResults=reExp.findall(fdInput.read())
fdInput.close()
for i in reResults:
print i
I did not have much luck with LO documentation so, far, any guidance?