<?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: regex to extract substring from the string in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126972#M15748</link>
    <description>&lt;P&gt;Hi Chandni,&lt;/P&gt;&lt;P&gt;I spent some time looking through this and it is quite difficult to only obtain the single value you are looking for without being able to use quantifiers inside of a groups.&lt;/P&gt;&lt;P&gt;Basically I was able to split the string into multiple values using step 2 of the process, but was not able to get it down to the single value. Here it retrieves two separate values. One containing your desired output and another that I cannot find out how to get rid of.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23432-1580239874134.png" /&gt;&lt;/P&gt;&lt;P&gt;Since I do not know much about the data I am unsure if the |HMP value may change depending on the query. If not you could use:&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23431-1580239813951.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this at least helps you get started.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Dallas&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 19:32:24 GMT</pubDate>
    <dc:creator>Dallas</dc:creator>
    <dc:date>2020-01-28T19:32:24Z</dc:date>
    <item>
      <title>regex to extract substring from the string</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126970#M15746</link>
      <description>&lt;P&gt;I have a request attribute which returns me a value as a long string. &lt;/P&gt;&lt;P&gt;For example :  &lt;/P&gt;&lt;P&gt;xxxxxx|PRTL4797897|RHMP8453|442275|&lt;STRONG&gt;&lt;U&gt;6610.00&lt;/U&gt;&lt;/STRONG&gt;|HMP|428094|03|INR|VDDIRECT|05-NA|NA|00000000.00|24-01-2020 16:36:12|0300|NA|3308031910026362|NA|NA|NA|NA|NA|PAYMODE|NA|PGS10001-Success|1175508963&lt;/P&gt;&lt;P&gt;I only want extract the value which is bold and underlined(6610.00), which indicated the amount paid by end users to customer and finally want to do sum of all the extracted values  to show  the final premium received by customer in a dashboard in a day. Can anyone help with regex which I can apply here, &lt;STRONG&gt; Further restrict or process captured parameters&lt;/STRONG&gt;  section of request attribute. The settings of request attribute is attached here which returns me a text data as a return value of  some java method.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23403-req-attribute-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 11:13:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126970#M15746</guid>
      <dc:creator>cp_patel</dc:creator>
      <dc:date>2020-01-28T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: regex to extract substring from the string</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126971#M15747</link>
      <description>&lt;P&gt;Hi Chandni,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you can set this up in the "Further restrict or process captured parameters (optional)" section of the request attribute:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23417-1580221742118.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:29:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126971#M15747</guid>
      <dc:creator>thomas_brandl</dc:creator>
      <dc:date>2020-01-28T14:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: regex to extract substring from the string</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126972#M15748</link>
      <description>&lt;P&gt;Hi Chandni,&lt;/P&gt;&lt;P&gt;I spent some time looking through this and it is quite difficult to only obtain the single value you are looking for without being able to use quantifiers inside of a groups.&lt;/P&gt;&lt;P&gt;Basically I was able to split the string into multiple values using step 2 of the process, but was not able to get it down to the single value. Here it retrieves two separate values. One containing your desired output and another that I cannot find out how to get rid of.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23432-1580239874134.png" /&gt;&lt;/P&gt;&lt;P&gt;Since I do not know much about the data I am unsure if the |HMP value may change depending on the query. If not you could use:&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23431-1580239813951.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Hope this at least helps you get started.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Dallas&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 19:32:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126972#M15748</guid>
      <dc:creator>Dallas</dc:creator>
      <dc:date>2020-01-28T19:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: regex to extract substring from the string</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126973#M15749</link>
      <description>&lt;P&gt;And here is some quick and dirty regex you could try.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;(\d+?\.\d+?)\|HMP\|&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;br,&lt;/P&gt;&lt;P&gt;Janne&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 06:46:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126973#M15749</guid>
      <dc:creator>janne_olkoniemi</dc:creator>
      <dc:date>2020-01-29T06:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: regex to extract substring from the string</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126974#M15750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;one more thing - from the data, my assumption is, that this is Bloomberg Format. Be aware that Bloomberg usually sends a header first, that explains what fields are sent (between START-OF-FIELDS and END-OF-FIELDS - see &lt;A href="https://docs.informatica.com/data-integration/b2b-data-transformation/10-0/libraries-guide/descriptions-of-the-libraries/bloomberg-library/bloomberg-message-structure.html"&gt;https://docs.informatica.com/data-integration/b2b-data-transformation/10-0/libraries-guide/descriptions-of-the-libraries/bloomberg-library/bloomberg-message-structure.html&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you know that the application is always requesting the same set of fields, you can of course just use a regex to select the n-th value, in your case:&lt;/P&gt;&lt;P&gt;[^\|]++\|[^\|]++\|[^\|]++\|[^\|]++\|[^\|]++\|([^\|]++\|)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;(I couldn't find a quick simpler solution, as Dynatrace doesn't allow for quantified groups)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 08:00:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126974#M15750</guid>
      <dc:creator>thomas_brandl</dc:creator>
      <dc:date>2020-01-29T08:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: regex to extract substring from the string</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126975#M15751</link>
      <description>&lt;P&gt;Best solution)&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 14:13:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/regex-to-extract-substring-from-the-string/m-p/126975#M15751</guid>
      <dc:creator>IvanVovk</dc:creator>
      <dc:date>2020-08-10T14:13:47Z</dc:date>
    </item>
  </channel>
</rss>

