Re: Regexp question

2016-09-19 Thread Moshe Cohen
That in itself was an invalid regexp but doing that + escaping the braces and double quotes was good Thank you On Mon, Sep 19, 2016 at 2:05 PM, Jan-Henrik Haukeland wrote: > > > On 19 Sep 2016, at 12:44, Moshe Cohen wrote: > > > > I am trying to validate the content in a "check host" with the

Re: Regexp question

2016-09-19 Thread Jan-Henrik Haukeland
> On 19 Sep 2016, at 12:44, Moshe Cohen 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

Regexp question

2016-09-19 Thread Moshe Cohen
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. -- To unsubscribe: https://lists.non