<?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 Not matching when ? is in the URL. in Custom Signatures</title>
    <link>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74858#M62</link>
    <description>&lt;P&gt;Which context are you using. Please try using the http-req-params&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2016 06:44:58 GMT</pubDate>
    <dc:creator>abjain</dc:creator>
    <dc:date>2016-03-17T06:44:58Z</dc:date>
    <item>
      <title>Regex Not matching when ? is in the URL.</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74853#M61</link>
      <description>&lt;P&gt;I am&amp;nbsp;trying to setup a custom application to match based on URL request which contains:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;search=&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the only consistent 7 byte string in the URL. This works fine unless the request contains a preceeding '?' in the URL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example the following URL would not match&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/some.php?af=352485245&amp;amp;search=&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;blahblah&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;While this URL would match:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;/some.php&amp;amp;af=352485245&amp;amp;search=&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;blahblah&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am assuming this is because we are hitting the ? and stopping there. How would I write this pattern so that if there is a preceeding ? anywhere in the URL, it is ignored or treated as a literal '?'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 05:29:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74853#M61</guid>
      <dc:creator>jpeters</dc:creator>
      <dc:date>2016-03-17T05:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Not matching when ? is in the URL.</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74858#M62</link>
      <description>&lt;P&gt;Which context are you using. Please try using the http-req-params&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 06:44:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74858#M62</guid>
      <dc:creator>abjain</dc:creator>
      <dc:date>2016-03-17T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Not matching when ? is in the URL.</title>
      <link>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74870#M63</link>
      <description>&lt;P&gt;Good morning, jpeters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As abjain stated, http-req-uri-path and http-req-params contain some distinctions that will help you match in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See page 24 on this document:&amp;nbsp;&lt;A href="https://live.paloaltonetworks.com/t5/Documentation-Articles/Creating-Custom-Threat-Signatures/ta-p/58569" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Documentation-Articles/Creating-Custom-Threat-Signatures/ta-p/58569&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:51:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/custom-signatures/regex-not-matching-when-is-in-the-url/m-p/74870#M63</guid>
      <dc:creator>rcole</dc:creator>
      <dc:date>2016-03-17T10:51:28Z</dc:date>
    </item>
  </channel>
</rss>

