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

**URL:** <https://community.dynatrace.com/t/regex-parsing-logic-to-extract-nested-or-repeating-patterns-from-a-specific-data-record-format/55476>\
**Category:** DQL\
**Tags:** regex, dql\
**Created:** [April 5, 2026, 6:30pm UTC](https://community.dynatrace.com/t/regex-parsing-logic-to-extract-nested-or-repeating-patterns-from-a-specific-data-record-format/55476 "2026-04-05T18:30:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrunksGr](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@TrunksGr](https://community.dynatrace.com/u/TrunksGr)\
**Post date:** [April 5, 2026, 6:30pm UTC](https://community.dynatrace.com/t/regex-parsing-logic-to-extract-nested-or-repeating-patterns-from-a-specific-data-record-format/55476/1 "2026-04-05T18:30:20Z")

</div>

I am looking for a way to extract specific substrings from a data record. I need to retrieve all values associated with the key&nbsp;`Value`that are contained&nbsp;_inside_&nbsp;the&nbsp;`value="..."`&nbsp;attribute of a&nbsp;`data record`.

data record(content=“Hello value=\“something1\” value=\“something2\” value=\“something2\”&nbsp; 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\>.\*?)\“”

---

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [April 6, 2026, 6:27am UTC](https://community.dynatrace.com/t/regex-parsing-logic-to-extract-nested-or-repeating-patterns-from-a-specific-data-record-format/55476/2 "2026-04-06T06:27:58Z")

</div>

Hi&nbsp;[@TrunksGr](https://community.dynatrace.com/user/103079)&nbsp;,  
You can use parseAll for this.  
Documentation reference:&nbsp;[String functions — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/string-functions#parseAll)

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

```markup
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&nbsp;:wink:

Thanks,  
[@Maheedhar\_T](https://community.dynatrace.com/user/76275)
