<?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 do I edit the syntax for my rex expression to extract the field from my sample data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271608#M81767</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=updateTitle "(?&amp;lt;patch&amp;gt;KB\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;rex field=updateTitle "((?KB\d+)"&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2015 21:13:49 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-10-13T21:13:49Z</dc:date>
    <item>
      <title>How do I edit the syntax for my rex expression to extract the field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271607#M81766</link>
      <description>&lt;P&gt;Can't get the following to work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=updateTitle  "(?&amp;lt;patch&amp;gt;)KB\d*+"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample text:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Security Update for Lync 2010 X64 (KB3081087â€‹)
Security Update for Microsoft Office 2010 (KB3054965) 32-Bit Edition
Update for Microsoft Office 2010 (KB3055042) 32-Bit Edition
Windows Malicious Software Removal Tool x64 - September 2015 (KB890830)
Update for Microsoft PowerPoint 2010 (KB3085513) 32-Bit Edition
Update for Microsoft Office 2010 (KB3055047) 32-Bit Edition
Security Update for Microsoft .NET Framework 4.5, 4.5.1 and 4.5.2 on Windows 7, Vista, Server 2008, Server 2008 R2 x64 (KB3074550)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271607#M81766</guid>
      <dc:creator>rgcox1</dc:creator>
      <dc:date>2015-10-13T21:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit the syntax for my rex expression to extract the field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271608#M81767</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=updateTitle "(?&amp;lt;patch&amp;gt;KB\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;rex field=updateTitle "((?KB\d+)"&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271608#M81767</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-13T21:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit the syntax for my rex expression to extract the field from my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271609#M81768</link>
      <description>&lt;P&gt;Thx. Moving closing paren to end worked: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; rex field=updateTitle  "(?&amp;lt;KBnum&amp;gt;KB\d*+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-the-syntax-for-my-rex-expression-to-extract-the/m-p/271609#M81768</guid>
      <dc:creator>rgcox1</dc:creator>
      <dc:date>2015-10-13T21:32:05Z</dc:date>
    </item>
  </channel>
</rss>

