# Excluding URLs & regex

**URL:** <https://discuss.codelibs.org/t/excluding-urls-regex/438>\
**Category:** English:Fess\
**Created:** [February 26, 2018, 3:44pm UTC](https://discuss.codelibs.org/t/excluding-urls-regex/438 "2018-02-26T15:44:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [February 26, 2018, 3:44pm UTC](https://discuss.codelibs.org/t/excluding-urls-regex/438/1 "2018-02-26T15:44:06Z")

</div>

(from [github.com/looper976](http://github.com/looper976))  
I am trying to exclude the crawling of web results that look like the following: (feed)

[http://site.net/category/reset/build/feed](http://site.net/category/reset/build/feed)  
[http://site.net/category/reset/build/feed/](http://site.net/category/reset/build/feed/)

But I don’t want to exclude pages that have the word feed in the middle of the URL:

[http://site.net/category/feeding/build/](http://site.net/category/feeding/build/)

I am trying to use something like this `/feed$` but it does not appear to be working. Do I have to have the regex match the entire URL or just the specific pattern I am after?

Thanks,

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [February 26, 2018, 8:58pm UTC](https://discuss.codelibs.org/t/excluding-urls-regex/438/2 "2018-02-26T20:58:13Z")

</div>

(from [github.com/marevol](http://github.com/marevol))  
Did you try `.*/feed/?`

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [February 27, 2018, 1:18pm UTC](https://discuss.codelibs.org/t/excluding-urls-regex/438/3 "2018-02-27T13:18:21Z")

</div>

(from [github.com/looper976](http://github.com/looper976))  
That works, thanks!
