gordom,
a macro can do the job , have a look at the standard LibreOffice macro's you find in every document)
you can also tranfer the text to a spreadsheet and use formula like if(left(cellstring,3) = 'set:');'nothing', cellstring)
then recopy to spreadsheet to a writerdoc and replace 'nothing'
hope it helps
Fernand