I have a bunch of strings that look like
"The\\u00a0discrepancies\\u00a0experienced"
and I want to filter out the \\u00a0
and replace them with ' '
Naively I tried something like
const unicodeRegexp = new RegExp('\\u00a0', 'g')
const filterKey = string => string.replace(unicodeRegexp, ' ')
but a quick test of filterKey("The\\u00a0discrepancies\\u00a0experienced")
returns the string unfiltered.
What's going on here?