Issue with extracting value for XML request and response

Hi all,

I am trying to capture value for an http request which got XML request and XML response. I am facing issue as specified below in the error code.

`
package computerdatabase

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._

class Test1 extends Simulation {

val httpProtocol = http.baseUrl(“https://xyz.com:5678”)

val header = Map(
“Authorization” → “Basic abcnDEFghiJKlmnopQ=”
)

object pl{

val pl1 = exec(http(“my claims”)
.post("/api/v1.0/receiveeapp")
.headers(header)
.body(StringBody("""<?xml version="1.0" encoding="utf-8"?>


“”"))).check(regex("(?<=) (.*\n?) (?=)").saveAs(“subid”))
}

val pl1_1 = scenario(“claimsummary”).exec(pl.pl1)

setUp(pl1_1.inject(rampUsers(1) during (1 seconds)).protocols(httpProtocol))
}
`

Error:

12:54:58.849 [ERROR] i.g.c.ZincCompiler$ - /Users/.../gatling-maven-plugin-demo/src/test/scala/computerdatabase/Test1.scala:258:22: value check is not a member of io.gatling.core.structure.ChainBuilder possible cause: maybe a semicolon is missing beforevalue check’?
</ns2:Request>"""))).check(regex("(?<=) (.*\n?) (?=)").saveAs(“subid”))
`

Found issue, I didn’t close the brackets correctly.