<?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 to break down a string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553899#M157250</link>
    <description>&lt;P&gt;Speechless, like... I would have never thought it was so easy thank you so much&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 17:13:51 GMT</pubDate>
    <dc:creator>cindygibbs_08</dc:creator>
    <dc:date>2021-06-01T17:13:51Z</dc:date>
    <item>
      <title>Using Regex to break down a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553895#M157248</link>
      <description>&lt;P&gt;Hello guys I hope you are all having a great week&lt;/P&gt;&lt;P&gt;I work in a hotel chain and we provide transportation services, but unfortunaly for one of the contries where we have bussiness the type of transporation service provided comes in single string and I cant seem to break it down to make sense of it...&lt;BR /&gt;&lt;BR /&gt;The structure of this string goes as follows&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tvservice63_U8956&amp;nbsp;&lt;BR /&gt;tvservice63_L45&lt;BR /&gt;tvservice63_X15&lt;BR /&gt;tvservice63_T63&lt;BR /&gt;&lt;BR /&gt;the letter after the "_" represents the type of transportation and the number following is the amount charged&lt;BR /&gt;&lt;BR /&gt;What I want to do is the following&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="56.225806451612904%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;string&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;service&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;BILL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;tvservice63_U8956&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;U&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;8956&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;tvservice63_L45&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;L&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;tvservice63_X15&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;X&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;tvservice63_T63&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;T&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;63&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;separate the type of service and the amount of the bill I know I can use split or rex to separate by the "_" but Im lost at how to tell splunk to get the letter and the amount charged... thank you so much to those who can help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:58:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553895#M157248</guid>
      <dc:creator>cindygibbs_08</dc:creator>
      <dc:date>2021-06-01T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to break down a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553897#M157249</link>
      <description>&lt;P&gt;rex will do the job.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=string "_(?&amp;lt;service&amp;gt;[A-Z])(?&amp;lt;BILL&amp;gt;\d+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Jun 2021 17:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553897#M157249</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-01T17:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to break down a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553899#M157250</link>
      <description>&lt;P&gt;Speechless, like... I would have never thought it was so easy thank you so much&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 17:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Regex-to-break-down-a-string/m-p/553899#M157250</guid>
      <dc:creator>cindygibbs_08</dc:creator>
      <dc:date>2021-06-01T17:13:51Z</dc:date>
    </item>
  </channel>
</rss>

