Note that there are some explanatory texts on larger screens.

plurals
  1. PORegEx to find specific URL structure
    primarykey
    data
    text
    <p>I have the following URLs</p> <pre><code>http://mysite/us/product.aspx http://mysite/de/support.aspx http://mysite/spaces/product-space http://mysite/spaces/product-space/forums/this is my topic http://mysite/spaces/product-space/forums/here is another topic http://mysite/spaces/support-zone http://mysite/spaces/support-zone/forums/yet another topic http://mysite/spaces/internal http://mysite/spaces/internal/forums/final topic http://mysite/support/product/default.aspx </code></pre> <p><strike>I want to add a Crawl Rule (This is SharePoint 2010 search related) using RegEx that excludes the URLs that don't include <code>/forums/*</code>, leaving only the forum topic URLs.</strike></p> <p>I want a rule that excludes the URLs for <code>../spaces/space1</code> and <code>../spaces/space2</code> but leaves all others intact, including the URLs containing <code>/forums/</code></p> <p>i.e. here are the results I want to identify with the regex (which will be used in an 'exclude' rule in SharePoint Search):</p> <pre><code>http://mysite/spaces/product-space http://mysite/spaces/support-zone http://mysite/spaces/internal </code></pre> <p>leaving these results not matched by the regex (and therefore not excluded by this rule)</p> <pre><code>http://mysite/us/product.aspx http://mysite/de/support.aspx http://mysite/spaces/product-space/forums/this is my topic http://mysite/spaces/product-space/forums/here is another topic http://mysite/spaces/support-zone/forums/yet another topic http://mysite/spaces/internal/forums/final topic http://mysite/support/product/default.aspx </code></pre> <p>Can someone help me out? I've been looking at this all morning and my head is starting to hurt - I can't explain it, I just don't get regular expression structures.</p> <p>Thanks</p> <p>Kevin</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload