See the following thread. You likely need to use proper escaping.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| replaceRE gives syntax error | 6 | 1521 | January 4, 2020 | |
| Regex Invalid Syntax (but actually is valid) | 6 | 1239 | May 6, 2019 | |
| replaceRE returns generic syntax error | 7 | 1023 | July 20, 2017 | |
| replaceRE to extract part of a URL | 2 | 717 | September 17, 2018 | |
| replaceRE not working for me [SOLVED] | 5 | 4888 | January 17, 2017 |