hi, i have a big file containing thousands of questions, references and answers;
since most of the text is not formatted yet i need to format the Answers with a certain style (Questions and References will have their style too)
the problem is that many answers may be more long than others and instead of containing manual line breaks contain several paragraphs (so if i assign a style with a command they won’t be formatted completely but only up to the first paragraph).
but all answers start with an "R: " and end up with two end paragraphs (i mean the last paragraph of the complete answer and a next empty paragraph).
not finding any other way i’m using the alternative find and replace in two steps:
1st i search all paragraphs starting with ^ R:. * $ and replace them with \0\P{_answ} to assign the style
but as said this leaves the many longer answers incomplete (formatted only up to the first paragraph)
2nd i manually select each incomplete answer and replace all the \p paragraphs with \n manual line breaks in order to fix the style to to the complete answer
but it’s all manual, file id hudge and i’m not ending up anymore (and can’t believe there’s no way to automate the process with less manual work)
so don’t know if terms or ideas are correct but i’d like to understand if ther’s a way to define somthing like a sort of blocks using the first part "R: " as the initial distinctive part of some text and the last paragraph of the anwer as the end (or maybe the distinctive following empty one - and i’m not sure but i intended that could be not possible) as the final part of the block in order to assign to the answer it’s style, is there a way to do it? if not this way any other solution?
(i thought also that if i could find a way to replace the two adjacent Answer paragraphs in one ending keyword (as the final part of the block of the Answer) this unique ending Anwer paragraph would be distinguished from the Questions and Reference end paragraphs in order to replace all the contained previous Answer paragraphs in line breaks so that the above mentioned step 1) will do the work - but i cant’ find a way to search the two last paragraphs of the Answer and don’t know if the approach is correct too) any ideas?