Hi there gophers,
I'm trying to remove a certain character pattern from a string.
The actual pattern is *"(?i)\xa7[0-9a-fk-or]"* but it doesn't work at all. I
always get: *error parsing regexp: invalid UTF-8: `�[0-9a-fk-or]`*
That "\xa7" thingy is a " <http://shapecatcher.com/unicode/info/167>§"
character <http://shapecatcher.com/unicode/info/167>, called *Section sign*.
*It seems regexp doesn't translate my character*
I tried using:
- *"(?i)\u00a7[0-9a-fk-or]", \u00a7 instead of \xa7
- *"(?i)\uc2a7[0-9a-fk-or]"*, '§' == '\u00a7'
- *`(?i)\\u00a7[0-9a-fk-or]`*, using \u00a7 fails (invalid escape
- And a bunch more hoping something magically will work but none of them
did actually work.
Here's the code: