I used Python library to convert pdf files to docx. Unfortunately, these files contain a lot of end of paragraph sign in the middle of sentence.
I tried MS forums to resolve this problem using MS Word wildcard but unsuccessful. Then I tried to open my files in OpenOffice Writer because it supports regular expressions. Gemini gave me this pattern [a-zA-Z0-9]+[a-zA-Z0-9"')]*[,]?s*$.
Unfortunately, it catch these situations before the end of line. I want to avoid false positives (i.e. if it is the last line or if after this line just empty line or just one symbol like dot(.). Moreover there are special cases like chapter headers in the middle of text. Therefore if I will catch these cases they are false positives.
By the way the end of line is rn (or reverse I don’t know) but Word document has OpenXML and if you will open it in Notepad you will see a special tag but not a standard combination of end of line and carriage return. Does OpenOffice Writer has a solution for similar situations?