Regex/Parsing logic to extract nested or repeating patterns from a specific data record format

I am looking for a way to extract specific substrings from a data record. I need to retrieve all values associated with the key Valuethat are contained inside the value="..." attribute of a data record.

data record(content=“Hello value=\“something1\” value=\“something2\” value=\“something2\”  hello”)

From the above data I want to return this [something1,something2,something2]

I am trying to replicate the same thing that Splunk is doing
| rex field=_raw max_match=9999 “(?s)VALUE=\”(?<term0>.*?)\“”

Hi @TrunksGr ,
You can use parseAll for this.
Documentation reference: String functions — Dynatrace Docs

For the example you shared, it can be inferred as this

data record(content = "Hello value=\"something1\" value=\"something2\" value=\"something2\"  hello")
| fieldsAdd raw = parseAll(content, "'value=' DQS:val")
| fieldsAdd values = iCollectArray(replaceString(raw[], "\"", ""))

Hope this helps..

Happy Querying :wink:

Thanks,
@Maheedhar_T