<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using regex for a path in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294655#M3146</link>
    <description>&lt;P&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;I keep getting this error at the starting `*` of the string&lt;BR /&gt;&lt;BR /&gt;"&lt;SPAN&gt;The parsing pattern is invalid. mismatched input '*' expecting {&amp;lt;EOF&amp;gt;, '&amp;gt;&amp;gt;', '!&amp;gt;&amp;gt;', '&amp;lt;&amp;lt;', '!&amp;lt;&amp;lt;', '&amp;lt;', VARIABLE_ID, CHARGROUP, INIT, STRUCTURE, ENUM, JSON, JSON_OBJECT, JSON_ARRAY, JSON_VALUE, ARRAY, DATA, LDATA, LD, KVP, GENERIC_ID, STRING_OPEN, NEWDOC_OPEN, '('}"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2026 13:02:11 GMT</pubDate>
    <dc:creator>nisah</dc:creator>
    <dc:date>2026-02-12T13:02:11Z</dc:date>
    <item>
      <title>Using regex for a path</title>
      <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294629#M3144</link>
      <description>&lt;P&gt;Hi -&amp;nbsp;&lt;BR /&gt;I had the below regex working fine in a workflow&lt;BR /&gt;"| filter matchesRegex(lower(cicd.pipeline.url.full),".*/\\.github/workflows/.*(ci|standard).*\\.ya?ml$")"&lt;BR /&gt;&lt;BR /&gt;Now i'm getting the below error for the same. Is there any way I can get it to work with other functions?&lt;BR /&gt;I have been trying with matchesPattern or matchesValue .. nothing is working&lt;BR /&gt;&lt;BR /&gt;I'm trying to use regex to get the pattern as -&amp;nbsp;.github/workflows/*ci*.yam*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"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"
        ]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 08:25:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294629#M3144</guid>
      <dc:creator>nisah</dc:creator>
      <dc:date>2026-02-16T08:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex for a path</title>
      <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294644#M3145</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90635"&gt;@nisah&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is a post that might bring some light to your question:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/DQL/Regex-in-DQL/m-p/273446" target="_blank"&gt;https://community.dynatrace.com/t5/DQL/Regex-in-DQL/m-p/273446&lt;/A&gt;. The matchesRegex() function is being deprecated in favor of the matchesPattern() function, which allows &lt;STRONG&gt;standard wildcards&lt;/STRONG&gt; (* and ?).&lt;/P&gt;&lt;P&gt;Did you try to add a new filter condition? Something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| filter matchesPattern(lower(cicd.pipeline.url.full), "*/.github/workflows/*ci*.yam*")
   or matchesPattern(lower(cicd.pipeline.url.full), "*/.github/workflows/*standard*.yam*")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 11:25:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294644#M3145</guid>
      <dc:creator>luisbsantos</dc:creator>
      <dc:date>2026-02-12T11:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex for a path</title>
      <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294655#M3146</link>
      <description>&lt;P&gt;Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;I keep getting this error at the starting `*` of the string&lt;BR /&gt;&lt;BR /&gt;"&lt;SPAN&gt;The parsing pattern is invalid. mismatched input '*' expecting {&amp;lt;EOF&amp;gt;, '&amp;gt;&amp;gt;', '!&amp;gt;&amp;gt;', '&amp;lt;&amp;lt;', '!&amp;lt;&amp;lt;', '&amp;lt;', VARIABLE_ID, CHARGROUP, INIT, STRUCTURE, ENUM, JSON, JSON_OBJECT, JSON_ARRAY, JSON_VALUE, ARRAY, DATA, LDATA, LD, KVP, GENERIC_ID, STRING_OPEN, NEWDOC_OPEN, '('}"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 13:02:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294655#M3146</guid>
      <dc:creator>nisah</dc:creator>
      <dc:date>2026-02-12T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex for a path</title>
      <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294670#M3147</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/90635"&gt;@nisah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry. After checking that error message more carefully I realized I&amp;nbsp;misled you, because the wildcard * doesn't work in DPL (&lt;STRONG&gt;&lt;SPAN class=""&gt;Dynatrace Pattern Language&lt;/SPAN&gt;&lt;/STRONG&gt;), but in DQL (&lt;STRONG&gt;Dynatrace Query Language&lt;/STRONG&gt;)&lt;STRONG&gt;.&lt;/STRONG&gt; In DPL the wildcard to represent "anything" (like what * does) is LD (Line Data), or DATA.&lt;/P&gt;&lt;P&gt;Since the function &lt;EM&gt;matchesPattern()&lt;/EM&gt; uses &lt;STRONG&gt;DPL&lt;/STRONG&gt; you need to use the LD in your command.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| 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")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my research, you can also use the function &lt;EM&gt;matchesValue()&lt;/EM&gt; which actually supports the * wildcard. If you use this approach instead, I suggest using it with the partial match. Maybe something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| filter matchesValue(lower(cicd.pipeline.url.full), ["*.github/workflows/*ci*.yam*", "*.github/workflows/*standard*.yam*"], partialMatch:true)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 15:59:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294670#M3147</guid>
      <dc:creator>luisbsantos</dc:creator>
      <dc:date>2026-02-12T15:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex for a path</title>
      <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294683#M3148</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/94111"&gt;@luisbsantos&lt;/a&gt;&amp;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.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// | filter matchesPattern(cicd.pipeline.url.full, "LD? 'github/workflows/' LD? 'ci' LD?")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below solution still throws error&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| filter matchesValue(lower(cicd.pipeline.url.full), ["*.github/workflows/*ci*.yam*", "*.github/workflows/*standard*.yam*"], partialMatch:true)&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;A string like "*.github/workflows/*ci*.yam*" isn't allowed here. Please check the autocomplete suggestions before the error for alternative options.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for solutions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 17:55:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294683#M3148</guid>
      <dc:creator>nisah</dc:creator>
      <dc:date>2026-02-12T17:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex for a path</title>
      <link>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294743#M3149</link>
      <description>&lt;P&gt;For simple patterns you may also consider using &lt;EM&gt;&lt;STRONG&gt;like()&lt;/STRONG&gt;&lt;/EM&gt; funtion (&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#like" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/string-functions#like&lt;/A&gt;) acting like LIKE operator in SQL&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 18:51:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Using-regex-for-a-path/m-p/294743#M3149</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2026-02-13T18:51:59Z</dc:date>
    </item>
  </channel>
</rss>

