<?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 to catch end of line symbols with regex? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393120#M114364</link>
    <description>&lt;P&gt;What about the following regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(\w\:[^\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
J&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 12:37:29 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2018-06-15T12:37:29Z</dc:date>
    <item>
      <title>How to catch end of line symbols with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393118#M114362</link>
      <description>&lt;P&gt;I have symbols that mean end of line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\r\n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example of string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;D:\INSTALL\_SysinternalsSuite\processhacker-2.39-bin\x86\r\n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My regex looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;([a-zA-Z]:)(\\.*\\r\\n)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS. log looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blablabla\r\n D:\INSTALL\_SysinternalsSuite\processhacker-2.39-bin\x86\r\n blablabla\r\n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need catch only line like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;D:\INSTALL_SysinternalsSuite\processhacker-2.39-bin\x86\r\n
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393118#M114362</guid>
      <dc:creator>avasilievnko</dc:creator>
      <dc:date>2018-06-15T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch end of line symbols with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393119#M114363</link>
      <description>&lt;P&gt;By default &lt;CODE&gt;.&lt;/CODE&gt; doesn't match newline characters. You can try using &lt;CODE&gt;[\r\n.]*&lt;/CODE&gt; instead of &lt;CODE&gt;.*&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393119#M114363</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-15T11:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch end of line symbols with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393120#M114364</link>
      <description>&lt;P&gt;What about the following regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(\w\:[^\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393120#M114364</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2018-06-15T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch end of line symbols with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393121#M114365</link>
      <description>&lt;P&gt;its's better , but it catch other lines with \r\n&lt;/P&gt;

&lt;P&gt;Full log&lt;/P&gt;

&lt;P&gt;Jun 5 14:39:40 blabla-pc.blabla.bla bla|10.3.0.0 Результат:     Помещено на карантин: not-a-virus:HEUR:AdWare.Script.Generic\r\nПользователь:     BLA\i.blablabla (Активный пользователь)\r\nОбъект:     C:\users\i.blablabla\appdata\local\Google\Chrome\User Data\Default\Cache\f_000244\r\n&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393121#M114365</guid>
      <dc:creator>avasilievnko</dc:creator>
      <dc:date>2018-06-15T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch end of line symbols with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393122#M114366</link>
      <description>&lt;P&gt;It's catch all log file, but i should rich and of the line in strings like this:&lt;BR /&gt;
D:\INSTALL_SysinternalsSuite\processhacker-2.39-bin\x86\r\n&lt;/P&gt;

&lt;P&gt;(?([a-zA-Z]:)(\.*\r\n))&lt;/P&gt;

&lt;P&gt;So that the following lines with \r\n are not caught&lt;/P&gt;

&lt;P&gt;Need to stop regular expression at first match \r\n in line like this&lt;BR /&gt;
D:\INSTALL_SysinternalsSuite\processhacker-2.39-bin\x86\r\n&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393122#M114366</guid>
      <dc:creator>avasilievnko</dc:creator>
      <dc:date>2018-06-15T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch end of line symbols with regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393123#M114367</link>
      <description>&lt;P&gt;I win it with adding ?  , it makes it non-greedy. regex: (?([a-zA-Z]:)(\.*?\r\n))&lt;/P&gt;

&lt;P&gt;I can math only lines, like in the middle&lt;BR /&gt;
blablabla\r\n D:\INSTALL_SysinternalsSuite\processhacker-2.39-bin\x86\r\n blablabla\r\n&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-catch-end-of-line-symbols-with-regex/m-p/393123#M114367</guid>
      <dc:creator>avasilievnko</dc:creator>
      <dc:date>2018-06-15T13:08:58Z</dc:date>
    </item>
  </channel>
</rss>

