I have a string that will be delivered to my application in the following format:
ece4241692a1c7434da51fc1399ea2fa155d4fc983084ea59d1455afc79fafed
What I need to do is format it for my database so that it reads the following:
<ece42416 92a1c743 4da51fc1 399ea2fa 155d4fc9 83084ea5 9d1455af c79fafed>
I guess the easiest way to do this is to use regular expressions, but I have never used them before, and this is the first time I've ever needed, and to be honest, I just don't have time to read them at this moment, so if anyone can help me, I will be forever grateful.
source
share