# Using regex for a path

**URL:** <https://community.dynatrace.com/t/using-regex-for-a-path/54972>\
**Category:** DQL\
**Tags:** regex, dql\
**Created:** [February 12, 2026, 3:24am UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972 "2026-02-12T03:24:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nisah](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@nisah](https://community.dynatrace.com/u/nisah)\
**Post date:** [February 12, 2026, 3:24am UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972/1 "2026-02-12T03:24:24Z")

</div>

Hi -&nbsp;  
I had the below regex working fine in a workflow  
“| filter matchesRegex(lower(cicd.pipeline.url.full),”.\*/\\.github/workflows/.\*(ci|standard).\*\\.ya?ml$“)”

Now i’m getting the below error for the same. Is there any way I can get it to work with other functions?  
I have been trying with matchesPattern or matchesValue .. nothing is working

I’m trying to use regex to get the pattern as -&nbsp;.github/workflows/\*ci\*.yam\*

```markup
"notifications": [
      {
        "message": "The function `matchesRegex()` is experimental and may be changed or removed at any time. Please change your query to use the function `matchesPattern()` instead.",
        "severity": "INFO",
        "arguments": [
          "matchesRegex",
          "matchesPattern"
        ],
        "messageFormat": "The function `%1$s()` is experimental and may be changed or removed at any time. Please change your query to use the function `%2$s()` instead.",
        "syntaxPosition": {
          "end": {
            "line": 30,
            "index": 1264,
            "column": 104
          },
          "start": {
            "line": 30,
            "index": 1170,
            "column": 10
          }
        },
        "notificationType": "DEPRECATED_FUNCTION_EXPERIMENTAL_USE_REPLACEMENT",
        "messageFormatSpecifierTypes": [
          "FUNCTION_NAME",
          "FUNCTION_NAME"
        ]

```

---

<div class="post-metadata">

**Author:** ![luisbsantos](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@luisbsantos](https://community.dynatrace.com/u/luisbsantos)\
**Post date:** [February 12, 2026, 11:25am UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972/2 "2026-02-12T11:25:32Z")

</div>

Hi&nbsp;[@nisah](https://community.dynatrace.com/user/90635),

there is a post that might bring some light to your question:&nbsp;[https://community.dynatrace.com/t5/DQL/Regex-in-DQL/m-p/273446](https://community.dynatrace.com/post/273446). The matchesRegex() function is being deprecated in favor of the matchesPattern() function, which allows **standard wildcards** (\* and ?).

Did you try to add a new filter condition? Something like this:

```python
| filter matchesPattern(lower(cicd.pipeline.url.full), "*/.github/workflows/*ci*.yam*")
   or matchesPattern(lower(cicd.pipeline.url.full), "*/.github/workflows/*standard*.yam*")

```

Hope it helps.

---

<div class="post-metadata">

**Author:** ![nisah](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@nisah](https://community.dynatrace.com/u/nisah)\
**Post date:** [February 12, 2026, 1:02pm UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972/3 "2026-02-12T13:02:11Z")

</div>

Thanks for the response.

I keep getting this error at the starting `*` of the string

“The parsing pattern is invalid. mismatched input ‘\*’ expecting {\<EOF\>, ‘\>\>’, ‘!\>\>’, ‘\<\<’, ‘!\<\<’, ‘\<’, VARIABLE\_ID, CHARGROUP, INIT, STRUCTURE, ENUM, JSON, JSON\_OBJECT, JSON\_ARRAY, JSON\_VALUE, ARRAY, DATA, LDATA, LD, KVP, GENERIC\_ID, STRING\_OPEN, NEWDOC\_OPEN, ‘(’}”

---

<div class="post-metadata">

**Author:** ![luisbsantos](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@luisbsantos](https://community.dynatrace.com/u/luisbsantos)\
**Post date:** [February 12, 2026, 3:59pm UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972/4 "2026-02-12T15:59:01Z")

</div>

Hi&nbsp;[@nisah](https://community.dynatrace.com/user/90635),

Sorry. After checking that error message more carefully I realized I&nbsp;misled you, because the wildcard \* doesn’t work in DPL ( **Dynatrace Pattern Language** ), but in DQL ( **Dynatrace Query Language** ) **.** In DPL the wildcard to represent “anything” (like what \* does) is LD (Line Data), or DATA.

Since the function _matchesPattern()_ uses **DPL** you need to use the LD in your command.

```python
| filter matchesPattern(lower(cicd.pipeline.url.full), "LD '.github/workflows/' LD 'ci' LD '.yam' LD") 
 or matchesPattern(lower(cicd.pipeline.url.full), "LD '.github/workflows/' LD 'standard' LD '.yam' LD")

```

From my research, you can also use the function _matchesValue()_ which actually supports the \* wildcard. If you use this approach instead, I suggest using it with the partial match. Maybe something like this:

```python
| filter matchesValue(lower(cicd.pipeline.url.full), ["*.github/workflows/*ci*.yam*", "*.github/workflows/*standard*.yam*"], partialMatch:true)

```

---

<div class="post-metadata">

**Author:** ![nisah](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@nisah](https://community.dynatrace.com/u/nisah)\
**Post date:** [February 12, 2026, 5:55pm UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972/5 "2026-02-12T17:55:15Z")

</div>

[@luisbsantos](https://community.dynatrace.com/user/94111)&nbsp;Thank you for your response. Yea I was working few method and found out LD is like \* in regex. I used below regex and it worked.

```markup
// | filter matchesPattern(cicd.pipeline.url.full, "LD? 'github/workflows/' LD? 'ci' LD?")

```

Below solution still throws error

```auto
| filter matchesValue(lower(cicd.pipeline.url.full), ["*.github/workflows/*ci*.yam*", "*.github/workflows/*standard*.yam*"], partialMatch:true)

```

A string like “\*.github/workflows/\*ci\*.yam\*” isn’t allowed here. Please check the autocomplete suggestions before the error for alternative options.

Thank you so much for solutions 🙂

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [February 13, 2026, 6:51pm UTC](https://community.dynatrace.com/t/using-regex-for-a-path/54972/6 "2026-02-13T18:51:59Z")

</div>

For simple patterns you may also consider using _**like()**_ funtion ([String functions — Dynatrace Docs](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#like)) acting like LIKE operator in SQL
