Thank you so much for your solution.
It worked well. However, there seems to be a bug somewhere in RegExPal. When I step through the replacement one location at a time, every once in a while it is not a marker that is highlighted, but a string in the body-text. If I then choose ‘No’ to the replacement, I find that the next replacement is a final maker (\pn*) and the preceding initial marker was not replaced. If I choose ‘Yes’ the correct string a few verses further down seems to have been replaced and the next string to be replaced is the final marker. So it seems that RegExPal is not highlighting the string to be replaced correctly at times. When it is wrong the windows are initially also not showing the highlighted string. The one time when I checked, the windows shows the last few lines in the chapter.