# Use regex in Kibana SearchBox properly

**URL:** <https://discuss.elastic.co/t/use-regex-in-kibana-searchbox-properly/46802>\
**Category:** Kibana\
**Created:** [April 8, 2016, 12:09pm UTC](https://discuss.elastic.co/t/use-regex-in-kibana-searchbox-properly/46802 "2016-04-08T12:09:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.branzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter.branzi/32/116246_2.png) [@peter.branzi](https://discuss.elastic.co/u/peter.branzi)\
**Post date:** [April 8, 2016, 12:09pm UTC](https://discuss.elastic.co/t/use-regex-in-kibana-searchbox-properly/46802/1 "2016-04-08T12:09:39Z")

</div>

Hi everyone,

I'm currently trying to filter out a URL pattern on Kibana. We have already amended the mapping to make sure URLs are not split up due to being a analyzed\_field.

I want to filter out all URL of a specific field "x" that contain 8 numbers in a row.

e.x. [www.domain.com/xx/yy/d12345678](http://www.domain.com/xx/yy/d12345678)

I assume I need some sort of regex but can't sort out how it should look like

Can anyone help me out with it?

---

<div class="post-metadata">

**Author:** ![Khalah\_Jones\_Golden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khalah_jones_golden/32/7169_2.png) [@Khalah\_Jones\_Golden](https://discuss.elastic.co/u/Khalah_Jones_Golden)\
**Post date:** [April 8, 2016, 12:21pm UTC](https://discuss.elastic.co/t/use-regex-in-kibana-searchbox-properly/46802/2 "2016-04-08T12:21:18Z")

</div>

Here you go

[https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html#regexp-syntax](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html#regexp-syntax)

Peace,  
Khalah

---

<div class="post-metadata">

**Author:** ![peter.branzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter.branzi/32/116246_2.png) [@peter.branzi](https://discuss.elastic.co/u/peter.branzi)\
**Post date:** [April 8, 2016, 12:24pm UTC](https://discuss.elastic.co/t/use-regex-in-kibana-searchbox-properly/46802/3 "2016-04-08T12:24:10Z")

</div>

Hi Khalah,

Thanks for your reply!

I'd seen this but I'm afraid I need more assistance as I'm not really familiar with regex. Thanks anyway

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:56pm UTC](https://discuss.elastic.co/t/use-regex-in-kibana-searchbox-properly/46802/4 "2017-07-06T13:56:32Z")

</div>


