I want to convert JSON Unicode escape sequences of the form \uA90F to XML character references of the form ꤏ;.
The Replace in the script below is working, but I cannot figure out how to substitute back into the original string, so that this:
Zo\u00EB C\u00E9cile Fran\u00E7oise
Becomes:
Zoë Cécile Françoise
Dim RegX, InputText, Pattern, ReplacedText
'Zoe Francoise Cecile
InputText = "Zo\u00E2 Fran\u00E7oise C\u00E9cile"
SearchPattern = "\\u[a-zA-Z0-9]{4}"
set RegX = New RegExp
RegX.Pattern = SearchPattern
RegX.Global = True
Set Matches = RegX.Execute(InputText)
For Each Match In Matches
s = Replace(Match, "\u", "&#x") & ";" '<-- ** This works fine **
MsgBox(s)
Next