I have a something like the following strings:
accounts.paul.12.7.20.5.payment.received
accounts.john 1.7.6.31.payment
management.42.1.382.33.request.denied
Notice how every space has a dot
I'd like it returned like this:
accounts paul 12.7.20.5 payment received
accounts john 1.7.6.31 payment
management 42.1.382.33 request denied
Basically I want all the dots removed from strings except the dots that exist between numbers. I'm just learning regex and really having trouble getting this. I can do it if the dots appear in the same position using strrpos and substr but not when they appear in different locations like above which is why I need help.
Any help would be greatly appreciated.