Mismatch input '>'

Just upgraded to 3.1 from 2.5 and am working on fixing all the things that are different. One of them is the new HTTP binding.

Thing http:url:usgs "USGS" [
  baseURL="https://waterservices.usgs.gov/nwis/iv/?sites=01616500&parameterCd=00065", refresh=36] {
    Channels:
      Type string : level "Level" [ stateTransformation="REGEX::(?<=">).*?(?=<\/ns1:value>)" ]
}

I was hoping the above would pull my creek depth value, the REGEX works in a online regex tester, but not on openhab 3.1. I get:

2021-08-23 16:23:44.748 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'http.things'
2021-08-23 16:23:44.751 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'http.things' has errors, therefore ignoring it: [10,70]: mismatched input '>' expecting ']'
[10,81]: missing '}' at 'ns1'
[10,90]: mismatched input '>' expecting ':'
[10,92]: mismatched character '<EOF>' expecting '"'

The double quote (") in the mid of your REGEX seems to be wrong. It marks the end of the string. In case you require one I think it needs to be escaped.

Thanks for responding, I tried removing the (") and it still worked in my regex tester, so I guess it may not be needed, however now I get:

2021-08-23 16:34:50.675 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'http.things' has errors, therefore ignoring it: [10,80]: Character n is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
[10,57]: mismatched character '/' expecting set null
[10,83]: mismatched input ':' expecting ']'
[10,84]: missing '}' at 'value'
[10,91]: mismatched character '<EOF>' expecting '"'

My thing.

Thing http:url:usgs "USGS" [
  baseURL="https://waterservices.usgs.gov/nwis/iv/?sites=01616500&parameterCd=00065", refresh=36] {
    Channels:
      Type string : level "Level" [ stateTransformation="REGEX::(?<=>).*?(?=<\/ns1:value>)" ]
}

The regex tester I tried: regex101.com

<ns1:value qualifiers="P" dateTime="2021-08-23T14:45:00.000-04:00">2.02</ns1:value>

and it found 2.02 from the XML.

two colons?