Zend certified PHP/Magento developer

Notepad++ 1) Seperate numbers into blocks of 5 2) Add a hyphen after 5 characters and 3) replace specific numbers with x’s

I have a three-part question about using Notepad++ to alter sets of numbers.

I have blocks of numbers as follows:

1415926535 8979323846 2643383279 5028841971 6939937510
5820974944 5923078164 0628620899 8628034825 3421170679

How can I change / alter this with Notepad++ as follows

  • break each line of 50 digits (5 sets of 10) into single lines with 25 digits per line
  • insert a hyphen after each 5 digits
  • ensure the line breaks to new line after 25 digits

As follows:

14159-26535-89793-23846-26433
83279-50288-41971-69399-37510
58209-74944-59230-78164-06286
20899-86280-34825-34211-70679

When this is done….

Is it possible to remove and replace specific characters with x’s – as below:

14159-26535-xxxx3-xxxx6-xxxx3
83279-50288-xxxx1-xxxx9-xxxx0
58209-74944-xxxx0-xxxx4-xxxx6
20899-86280-xxxx5-xxxx1-xxxx9

Hopefully this is not too ambitious a request for Notepad++?