How to put line numbers on existing blank pages?

I have tried both of these:

<text:p text:style-name="P[0-5]"/>


<text:p text:style-name="P[0-9]{1,3}"/>

For the replace I have tried:

&<text:p text:style-name="P6"/>

I am using notepad++ Please see screenshot of my approach below . Not sure what I am doing wrong?


@tommydog, Edit the content.xml file in Writer. To do it, I add a .wri extension to the file name.

The regular expressions works in the Find & Replace dialog of Writer (don’t know if notepad++ understand them).

Yes, I think that was the problem. It seems the text editors of was using were not recognising the expressions. It’s all perfect now - thanks.

Out of interest is there any quick way to edit the XML files using the find and replace dialogue to set page margins for every page in the document? I want all pages to have a left margin of 1.5cm from the edge of the page and a top / bottom margin of 0.5 cm for all pages regardless of size and orientation?

Not sure, but think that we need to play with the styles.xml file to change margins. I need to test it before.