title: AWS API Gateway Lambda regex not working/ Java
body: <p>I am trying to match below regular expression for a specific response returned by Lambda function in java. But it does not seem to be working.</p>
  
  <p>Lambda Error Regex -</p>
  
  <pre><code>.*"status:\s"422.*
  </code></pre>
  
  <p>Lambda error response format(response object is a POJO) -</p>
  
  <pre><code>{
    "id": "3sghsh3232",
    "status": 422,
    "responseCode": "INVALID-DATA",
    "message": "Please provide a valid data",
    "time": "2019-08-30T06:16:20.976",
    "errors": [
      {
        "code": "422",
        "message": "Missing fields"
      }
    ]
  }
  </code></pre>
  
  <p>Tried expressions -</p>
  
  <pre><code>".*\\\"status\\\":422.*"
  .*422(.|\n)*
  .*422.*
  </code></pre>