nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Wing <jvw...@gmail.com>
Subject Re: Escape Single Quote
Date Thu, 05 Apr 2018 15:12:27 GMT
I believe you need something like

${my_forcast:replace("'","\\'")}

Using two backslashes \\.  The backslash is also used as an escape
character in the expression language string, so you need two consecutive
backslashes to make one literal backslash in the output.

On Thu, Apr 5, 2018 at 7:31 AM, Noe Detore <ndetore@minerkasch.com> wrote:

> Need to escape single quote for PutSql.  'Today's forecast ...' by a
> backslash: 'Today\'s forecast ...', How can this be done using ReplaceText?
> ${my_forcast:replace("'","\'")} does not work.
>

Mime
View raw message