<?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 How do you regex a part of a field name to use in a separate field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455001#M128712</link>
    <description>&lt;P&gt;I have a field which is a username, but the results of the username starts with "USR" and the actual username is "USRAjames".&lt;/P&gt;

&lt;P&gt;I actually need to get the "A" and the "james" and put it in seperate field.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 20:30:26 GMT</pubDate>
    <dc:creator>barney00</dc:creator>
    <dc:date>2018-10-29T20:30:26Z</dc:date>
    <item>
      <title>How do you regex a part of a field name to use in a separate field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455001#M128712</link>
      <description>&lt;P&gt;I have a field which is a username, but the results of the username starts with "USR" and the actual username is "USRAjames".&lt;/P&gt;

&lt;P&gt;I actually need to get the "A" and the "james" and put it in seperate field.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 20:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455001#M128712</guid>
      <dc:creator>barney00</dc:creator>
      <dc:date>2018-10-29T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you regex a part of a field name to use in a separate field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455002#M128713</link>
      <description>&lt;P&gt;you can try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=username "USR(?&amp;lt;fname&amp;gt;\w{1})\w+"| rex field=username "USR\w{1}(?&amp;lt;lname&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 21:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455002#M128713</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-29T21:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you regex a part of a field name to use in a separate field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455003#M128714</link>
      <description>&lt;P&gt;A simplistic one ; - ) - &lt;CODE&gt;USR(?&amp;lt;afield&amp;gt;A)(?&amp;lt;name&amp;gt;.*)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 00:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-regex-a-part-of-a-field-name-to-use-in-a-separate/m-p/455003#M128714</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-10-30T00:44:11Z</dc:date>
    </item>
  </channel>
</rss>

