Displaying 1 result from an estimated 1 matches for "u3e32623c".
2012 Apr 10
2
substitution of the ASCII character "squared" AKA "^2" AKA (alt+0178) with a tractable one
...(mm3/g)\t(%)\t(m\xb2/g)\t"
where "\xb2" is the alt+0178 ASCII character
My problem is to find out the regexp to substitute the ASCII 0178 with a
simple "2"
No problem with, say
gsub('\t',';', myString)
[1] "(MPa);(mm3);(nM);(mm3/g);(mm3/g);(%);(m\U3e32623c/g);"
which incidentally change the "\xb2" to "\U3e32623c",
but I cannot find a way to search and substitute for "\xb2".
I've tried many combinations such as
gsub('\xb', ...
gsub('\\xb', ...
gsub('\\xb2', ...
gsub('\xb2', ......