<?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 AppInspect and RegEx Capture Groups in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/AppInspect-and-RegEx-Capture-Groups/m-p/546753#M65300</link>
    <description>&lt;P&gt;In my add-on, I have a RegEx that contains 3 capture groups. However, one of the capture groups is only used within the RegEx as a numeric reference and is not required in the FORMAT field.&lt;/P&gt;&lt;P&gt;Unfortunately, I can't change this to a non-capturing group because it breaks the RegEx since it's dependent on being able to use the numeric reference.&lt;/P&gt;&lt;P&gt;As a result, my add-on always fails AppInspect and I can't seem to find a workaround for this.&lt;/P&gt;&lt;P&gt;Here's my transforms.conf entry for reference.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[replace-customfields]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REGEX&lt;/SPAN&gt;&lt;SPAN&gt; = (\S+)=([^=]*)\s+(?:\1Label)=([^=]+)(?:(?:\s\w+=)|$)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;=$3::$2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;KEEP_EMPTY_VALS&lt;/SPAN&gt;&lt;SPAN&gt;=True&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Any ideas would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 21:27:59 GMT</pubDate>
    <dc:creator>mikedgibson</dc:creator>
    <dc:date>2021-04-05T21:27:59Z</dc:date>
    <item>
      <title>AppInspect and RegEx Capture Groups</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/AppInspect-and-RegEx-Capture-Groups/m-p/546753#M65300</link>
      <description>&lt;P&gt;In my add-on, I have a RegEx that contains 3 capture groups. However, one of the capture groups is only used within the RegEx as a numeric reference and is not required in the FORMAT field.&lt;/P&gt;&lt;P&gt;Unfortunately, I can't change this to a non-capturing group because it breaks the RegEx since it's dependent on being able to use the numeric reference.&lt;/P&gt;&lt;P&gt;As a result, my add-on always fails AppInspect and I can't seem to find a workaround for this.&lt;/P&gt;&lt;P&gt;Here's my transforms.conf entry for reference.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[replace-customfields]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REGEX&lt;/SPAN&gt;&lt;SPAN&gt; = (\S+)=([^=]*)\s+(?:\1Label)=([^=]+)(?:(?:\s\w+=)|$)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;=$3::$2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;KEEP_EMPTY_VALS&lt;/SPAN&gt;&lt;SPAN&gt;=True&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Any ideas would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 21:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/AppInspect-and-RegEx-Capture-Groups/m-p/546753#M65300</guid>
      <dc:creator>mikedgibson</dc:creator>
      <dc:date>2021-04-05T21:27:59Z</dc:date>
    </item>
  </channel>
</rss>

