For Each i As Match In Regex.Matches(Str, "([^\s])*\uFFFD([^\s])*")
If Regex.IsMatch(i.Value, "(\uFFFD)C") Then
'It's a degree
'Regex.Replace(i.Value, "(\uFFFD)", "°")
ElseIf Regex.IsMatch(i.Value, "(\uFFFD)[A-Za-z]*?(</font>)*?</sup>") Then
'It's a minus
'Regex.Replace(i.Value, "(\uFFFD)", "-")
Else
'It's a center dot
'Regex.Replace(i.Value, "(\uFFFD)", "*")
End If
Next |