# Kibana regex not showing results

**URL:** <https://discuss.elastic.co/t/kibana-regex-not-showing-results/152211>\
**Category:** Kibana\
**Created:** [October 12, 2018, 9:42am UTC](https://discuss.elastic.co/t/kibana-regex-not-showing-results/152211 "2018-10-12T09:42:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snaak](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Snaak](https://discuss.elastic.co/u/Snaak)\
**Post date:** [October 12, 2018, 9:42am UTC](https://discuss.elastic.co/t/kibana-regex-not-showing-results/152211/1 "2018-10-12T09:42:19Z")

</div>

I have been trying to use Regex to find phone numbers in indexed files. However, I am not getting any results.  
This is my querry:

```
/(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{9}$)/

```

if I lookup an indexed test number (0611111111) it shows the result correctly, but the regex mentioned above doesn't.

For context, I am also using FScrawler to index various files.

Thanks in advance,

Snaak

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [October 15, 2018, 11:44pm UTC](https://discuss.elastic.co/t/kibana-regex-not-showing-results/152211/2 "2018-10-15T23:44:10Z")

</div>

One of the gotcha's with Lucene's regular expression queries is they're automatically anchored (^$) and including them won't give expected results. I'd recommend removing those and building the regex up section by section.

---

<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:** [November 12, 2018, 11:52pm UTC](https://discuss.elastic.co/t/kibana-regex-not-showing-results/152211/3 "2018-11-12T23:52:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
