nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noe Detore <ndet...@minerkasch.com>
Subject Re: Escape Single Quote
Date Thu, 05 Apr 2018 15:33:30 GMT
that was it. Thank you

On Thu, Apr 5, 2018 at 11:12 AM, James Wing <jvwing@gmail.com> wrote:

> 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