Matrix Version: 5.5.6.4
Hi,
I’m using the Call REST Resource option on a Custom Form to do server side Google RECAPTCHA V2 validation.
I’ve enabled the Validation Rule, and would like to use regex to match two values in the response.
{ "success": true, "challenge_ts": timestamp, "hostname": "myservername", "error-codes": [...] }
In the validation rule, when I just put in true, that works fine. If I put in myservername then that works fine.
When I put in /true(.)myservername/ or true(.)myservername without slashes then it fails validation.
I tried putting the regex through regex101 - my favourite regex checker, and I think it should work. Any tips specifically for this component in the Custom Form?
I am escaping dots in my servername in my regex. My problem is when I try to match true and the myservername.