I have a string that contains hex values inside brackets. I need to find all those strings and replace them with the decoded values.
Example input: MainDir[0x2f]SubDir[0x2f]Hello[0x2d]world[0x2e]txt
Desired output: MainDir/SubDir/Hello-world.txt
While I was posting this question I tried few options and came up with one possible answer and thought to post it for others. Please feel free to post if you have better options.