I have tried both of these:
<text:p text:style-name="P[0-5]"/>
AND
<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?