monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regexp question


From: Jan-Henrik Haukeland
Subject: Re: Regexp question
Date: Mon, 19 Sep 2016 13:05:29 +0200

> On 19 Sep 2016, at 12:44, Moshe Cohen <address@hidden> wrote:
> 
> I am trying to validate the content in a "check host" with the following line:
> 
> content = {"message":"server is alive"}
> 
> How do I escape it properly? Adding backslashes before the braces and quotes 
> , in all sorts of combinations still resulted in a syntax error.


Try content = '{"message":"server is aliveā€}'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]