A family of Microsoft word processing software products for creating web, email, and print documents.
Select the text.
Press Ctrl+H to activate the Replace dialog.
Click 'More >>' to display the options.
Tick the check box 'Use wildcards.
In the 'Find what' box, enter a space followed by ([0-9])
In the 'Replace with' box, enter ^p\1
Click 'Replace All'.