Kibana regex not showing results

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

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.

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