# How to use regex function on kibana for Ordered Search / match multiple keyword(sentence)?

**URL:** <https://discuss.elastic.co/t/how-to-use-regex-function-on-kibana-for-ordered-search-match-multiple-keyword-sentence/238174>\
**Category:** Kibana\
**Created:** [June 23, 2020, 3:08am UTC](https://discuss.elastic.co/t/how-to-use-regex-function-on-kibana-for-ordered-search-match-multiple-keyword-sentence/238174 "2020-06-23T03:08:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagmawan](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nagmawan](https://discuss.elastic.co/u/nagmawan)\
**Post date:** [June 23, 2020, 3:08am UTC](https://discuss.elastic.co/t/how-to-use-regex-function-on-kibana-for-ordered-search-match-multiple-keyword-sentence/238174/1 "2020-06-23T03:08:46Z")

</div>

Hi, Sorry i'm beginner in kibana. I will ask something about search, and will this work on kibana?

I want to use the regex function with the goal to order search / matching 2 sentences or maybe more in just 1 field.  
I have data like this :

> "DE:--GETRIEBE--R 63 B/4--66101----Elmo----0,18 KW  
> 0,25, HP  
> 1500 **RPM**  
> 380 V  
> 0,7A **Clase** B S43  
> 2.3.  
> 600:1  
> 1400 K----FALSE-----------------EN:---------------------------------------SP:------------MOTORREDUCTOR PARA LIMPIADOR RECOLECTOR DE POLVOS--R 63 B/4--66102----Elmo-------------------PT:------------------------"

And i use regex :

> HP(.|\n)\*RPM(.|\n)\*Clase

With the Goal of finding 3 sentences (HP, RPM, Clase) in sequence, if they are not ordered there will be no results.  
I tried running it on the regex test builder and it worked, but when I used it on kibana search it didn't work.

![sc1](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e852eac234b9a2122da662387183961521806242.png)

Is there something wrong with this? or maybe someone missed? And does the case above work on Kibana Search?

Please help and I am grateful for that

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [June 24, 2020, 4:34pm UTC](https://discuss.elastic.co/t/how-to-use-regex-function-on-kibana-for-ordered-search-match-multiple-keyword-sentence/238174/2 "2020-06-24T16:34:23Z")

</div>

Hello @nagmawan

Your screenshots are a bit small for me to read. That said - try working incrementally with the regex instead of trying it all at once. As you may know, there are different versions of regex.

The other thing you might try is parsing this data at ingest to make it easier to query.

---

<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 22, 2020, 4:34pm UTC](https://discuss.elastic.co/t/how-to-use-regex-function-on-kibana-for-ordered-search-match-multiple-keyword-sentence/238174/3 "2020-07-22T16:34:24Z")

</div>

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