<?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: Need to split string at last character before numeric value. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527460#M148889</link>
    <description>&lt;P&gt;Thanks for the suggesting, i just tried it and didn't work out for me, i have updated my post with a full string example which may help understand what i am trying to achieve.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Nov 2020 22:06:50 GMT</pubDate>
    <dc:creator>JayWest</dc:creator>
    <dc:date>2020-11-01T22:06:50Z</dc:date>
    <item>
      <title>Need to split string at last character before numeric value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527457#M148887</link>
      <description>&lt;P&gt;So i have a possibly unique requirement, i'm trying to split up so log data but i have a string in one field that contains numerous peices of information both numeric and character based. The numeric fields are of fixed length which i'm able to split without isssue BUT in the string there is also a character value (persons name). Now the issue i have is that the name part of the string is not fixed length it's based on the name length so doing a split by character number is not going to produce the results.&lt;/P&gt;&lt;P&gt;What i wanted to ask is, Is it possible to split a string between the end of a character value and a numeric one, example&amp;nbsp;would be:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;** Update **&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think it may be best to post a string that is more inline to what i want to do.&lt;/P&gt;&lt;P&gt;So the current field data i have looks like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;1234567801D52411021103100001860000CF19John Doe&lt;/SPAN&gt;&lt;SPAN class="t"&gt;01D5232102110265000159000001D5231202110265000103400601D53324021103100000000005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Single string but in this string is multiple pieces of information. What i want to do is extract the Name (John Doe) and use the values that remains as they are of ixed length. My problem is with removing the name as that is variable length and makes it hard to split.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 22:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527457#M148887</guid>
      <dc:creator>JayWest</dc:creator>
      <dc:date>2020-11-01T22:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to split string at last character before numeric value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527458#M148888</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=Field1 "(?&amp;lt;Field1&amp;gt;\D+)(?&amp;lt;Field2&amp;gt;\d+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 01 Nov 2020 21:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527458#M148888</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-01T21:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to split string at last character before numeric value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527460#M148889</link>
      <description>&lt;P&gt;Thanks for the suggesting, i just tried it and didn't work out for me, i have updated my post with a full string example which may help understand what i am trying to achieve.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 22:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527460#M148889</guid>
      <dc:creator>JayWest</dc:creator>
      <dc:date>2020-11-01T22:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to split string at last character before numeric value.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527477#M148900</link>
      <description>&lt;P&gt;Thanks, often better to use real or close to real examples rather than waste everyone's time with inaccurate fake examples.. Try this (although I suspect even this isn't wholly accurate, but you'll get the idea!)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=Field1 "(?&amp;lt;Field1&amp;gt;.{38})(?&amp;lt;Field2&amp;gt;.+)(?&amp;lt;Field3&amp;gt;.{78})"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 07:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-split-string-at-last-character-before-numeric-value/m-p/527477#M148900</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-02T07:38:05Z</dc:date>
    </item>
  </channel>
</rss>

