<?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: How to use rex on a QR String to cut out a part that I want in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574986#M200365</link>
    <description>&lt;P&gt;This should work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval str="00020101021253037045405100005802VN38620010A0000007270132000697110001180003131000000032040208QRIBFTTA624101121000000032040821 ORD_6328416304A3AC" 
| rex field=str "^\w+0132(?&amp;lt;field1&amp;gt;\S+)0208" 
| eval field2=substr(field1,0,6) | table field*&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 16 Nov 2021 04:43:34 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-11-16T04:43:34Z</dc:date>
    <item>
      <title>How to use rex on a QR String to cut out a part that I want</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574976#M200361</link>
      <description>&lt;P&gt;I have a QR String that when put in our custom QR divider can took it apart nicely. But I can't use the field extraction for this. How do I use custom rex. Example:&lt;/P&gt;&lt;P&gt;- My QR String:00020101021253037045405100005802VN38620010A0000007270132&lt;U&gt;&lt;FONT color="#993300"&gt;000697&lt;/FONT&gt;11000118000313100000003204&lt;/U&gt;0208QRIBFTTA624101121000000032040821 ORD_6328416304A3AC&lt;/P&gt;&lt;P&gt;- The string I want to take out is &lt;U&gt;&lt;FONT color="#993300"&gt;000697&lt;/FONT&gt;11000118000313100000003204 &lt;/U&gt;and &lt;U&gt;&lt;FONT color="#993300"&gt;000697&lt;/FONT&gt;&lt;/U&gt; (The first 6 characters) as field1 and field2.&lt;/P&gt;&lt;P&gt;Fortunately the 4 characters before and 4 characters behind don't chance.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 02:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574976#M200361</guid>
      <dc:creator>phamxuantung</dc:creator>
      <dc:date>2021-11-16T02:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rex on a QR String to cut out a part that I want</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574980#M200362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230393"&gt;@phamxuantung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without boundaries pre-defined set of chars ahead or delimiter or pattern its tough to extract. For rex the user has to give an indication from where to start extracting and where to end boundaries..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 03:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574980#M200362</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-11-16T03:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rex on a QR String to cut out a part that I want</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574981#M200363</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 4 characters before the string start always be 0132 and the 4 characters after the string end always be 0208. Will this be more feasible?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574981#M200363</guid>
      <dc:creator>phamxuantung</dc:creator>
      <dc:date>2021-11-16T04:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rex on a QR String to cut out a part that I want</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574986#M200365</link>
      <description>&lt;P&gt;This should work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval str="00020101021253037045405100005802VN38620010A0000007270132000697110001180003131000000032040208QRIBFTTA624101121000000032040821 ORD_6328416304A3AC" 
| rex field=str "^\w+0132(?&amp;lt;field1&amp;gt;\S+)0208" 
| eval field2=substr(field1,0,6) | table field*&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-rex-on-a-QR-String-to-cut-out-a-part-that-I-want/m-p/574986#M200365</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-11-16T04:43:34Z</dc:date>
    </item>
  </channel>
</rss>

