Skip to content
Prev 385427 / 398506 Next

Matching backslash in a table's column using R language

The feed is coming from a SQL table and this is using the embedded support for R which comes with SQL 2016. The source is therefore a SELECT statement.


As an aside, I found a workaround by changing the pattern from:


"[\x22\x27\x2c\x3f\x5c\x60]"


to:


"[\x22\x27\x2c\x3f\x5c\x5c\x60]"


This seems to be escaping the backslash in the R script rather than in the data - which confuses me.
Message-ID: <ME2PR01MB385722776B2806EDA31306F783570@ME2PR01MB3857.ausprd01.prod.outlook.com>
In-Reply-To: <CAGxFJbTvCAMGa_XSTbmXd1VORuZO3rUw3D25THyEgWF2-s_RgQ@mail.gmail.com>