<?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 - Ignore Whitespace in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35639#M7828</link>
    <description>&lt;P&gt;From the Splunk Community Wiki, there is an article about this titled "RegEx Testing Tools" which starts with " Splunk uses &lt;A href="http://en.wikipedia.org/wiki/PCRE"&gt;Perl compatible regular expressions&lt;/A&gt;". This might help you with what you can and cannot use.&lt;/P&gt;

&lt;P&gt;Have you tried using "\S+" (note the 's' is capitalized)? How about "(?!\s+)" for a negative lookahead?&lt;/P&gt;

&lt;P&gt;Perhaps if you provide an example of your source for which you want this to work, someone can provide a sample RegEx to do what is wanted and needed.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2013 17:10:42 GMT</pubDate>
    <dc:creator>rgcurry</dc:creator>
    <dc:date>2013-02-18T17:10:42Z</dc:date>
    <item>
      <title>Regex - Ignore Whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35638#M7827</link>
      <description>&lt;P&gt;Is it possible to create a regex to ignore whitespace?  Typically you can use /x to do this, but this does not seem to work in Splunk.  I have also tried putting (?x) at the front of the regex, but this fails as well.&lt;/P&gt;

&lt;P&gt;So, is there a modifier to ignore whitespace?&lt;/P&gt;

&lt;P&gt;Also, is there any good documentation on all of the available regex modifiers within Splunk?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 15:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35638#M7827</guid>
      <dc:creator>vragosta</dc:creator>
      <dc:date>2013-02-18T15:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex - Ignore Whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35639#M7828</link>
      <description>&lt;P&gt;From the Splunk Community Wiki, there is an article about this titled "RegEx Testing Tools" which starts with " Splunk uses &lt;A href="http://en.wikipedia.org/wiki/PCRE"&gt;Perl compatible regular expressions&lt;/A&gt;". This might help you with what you can and cannot use.&lt;/P&gt;

&lt;P&gt;Have you tried using "\S+" (note the 's' is capitalized)? How about "(?!\s+)" for a negative lookahead?&lt;/P&gt;

&lt;P&gt;Perhaps if you provide an example of your source for which you want this to work, someone can provide a sample RegEx to do what is wanted and needed.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 17:10:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35639#M7828</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2013-02-18T17:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regex - Ignore Whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35640#M7829</link>
      <description>&lt;P&gt;(?x) allows you to insert comments into your regex provided they're inbetween character classes &lt;A href="http://www.perl.com/pub/2004/01/16/regexps.html"&gt;examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 19:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35640#M7829</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-18T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex - Ignore Whitespace</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35641#M7830</link>
      <description>&lt;P&gt;where are the regexes ? in transforms.conf or in the rex search command ? Do you have an example ? how does it fail? Its feasible that transforms.conf is read line by line, so multi-line regexes would be garbled, but id expect errors on splunk start in that case&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 19:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Ignore-Whitespace/m-p/35641#M7830</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-18T19:33:15Z</dc:date>
    </item>
  </channel>
</rss>

