Forum Discussion
Receive String Error: How do i write a regular expression for the below string
I would like to know the regular expression for the below receive string
{"Job Server Health Check":{"healthy":true},"Quartz Scheduler Health Check":{"healthy":true},"deadlocks":{"healthy":true}}
I tried copying this directly and F5 gave an error saying invalid regular expression. I am new to Curl and regular expression in F5. Please help.
where did you copy paste it?
- Simon_Blakely
Employee
A Monitor Receive String should be a regex.
However, you are trying to match the plain text response, but it contains characters that could be part of a regex. The solution is to escape the offending characters
\{\"Job Server Health Check\":\{\"healthy\":true\},\"Quartz Scheduler Health Check\":\{\"healthy\":true\},\"deadlocks\":\{\"healthy\":true\}\}
However, I'd be tempted to not try to match the entire string, and just look for
\"Healthy\":true
- Raja_Intuit_262
Nimbostratus
In the receive string tab of the health monitor.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com