<?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 sanity check - fixed record length field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140208#M38673</link>
    <description>&lt;P&gt;Remove the parentheses from around the first dot and it should work.  Of course, the whole regex string must be quoted.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex ".{200}(?P&amp;lt;FIELD&amp;gt;.{2})" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Jun 2015 19:26:43 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-06-02T19:26:43Z</dc:date>
    <item>
      <title>Regex sanity check - fixed record length field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140207#M38672</link>
      <description>&lt;P&gt;Guys, I have a horrible dataset in Splunk and am trying to match fields based on a position in event.&lt;/P&gt;

&lt;P&gt;As an example, I need to extract a field which is found in the 201st and 202nd position of the event. I tried the following extraction (with some iteration) which fails.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex (.){200}(?P&amp;lt;FIELD&amp;gt;.{2})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What should it look like?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140207#M38672</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2015-06-02T19:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex sanity check - fixed record length field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140208#M38673</link>
      <description>&lt;P&gt;Remove the parentheses from around the first dot and it should work.  Of course, the whole regex string must be quoted.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex ".{200}(?P&amp;lt;FIELD&amp;gt;.{2})" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140208#M38673</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-02T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex sanity check - fixed record length field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140209#M38674</link>
      <description>&lt;P&gt;Also, anchor it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "^.{200}(?P&amp;lt;FIELD&amp;gt;.{2})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jun 2015 21:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140209#M38674</guid>
      <dc:creator>jacobwilkins</dc:creator>
      <dc:date>2015-06-02T21:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regex sanity check - fixed record length field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140210#M38675</link>
      <description>&lt;P&gt;Thanks guys!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-sanity-check-fixed-record-length-field-extraction/m-p/140210#M38675</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2015-06-03T11:22:39Z</dc:date>
    </item>
  </channel>
</rss>

