# Using KQL to query for number using regex

**URL:** <https://discuss.elastic.co/t/using-kql-to-query-for-number-using-regex/231499>\
**Category:** Elasticsearch\
**Created:** [May 7, 2020, 9:21am UTC](https://discuss.elastic.co/t/using-kql-to-query-for-number-using-regex/231499 "2020-05-07T09:21:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [May 7, 2020, 9:21am UTC](https://discuss.elastic.co/t/using-kql-to-query-for-number-using-regex/231499/1 "2020-05-07T09:21:24Z")

</div>

Hi all  
I notices something when i try some query using KQL,  
For example: i have 2 data like this 123.abc.deh and dhdk.abc.deh then when i write query for that like this  
test: \*.abc.deh then the only result return is dhdk.abc.deh, so how do i query to match both with regex in KQL  
And i cant use regex query string because i need to use this in the siem detection and they do not have a way to input query string

Thank in advance

---

<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:** [June 4, 2020, 9:21am UTC](https://discuss.elastic.co/t/using-kql-to-query-for-number-using-regex/231499/2 "2020-06-04T09:21:26Z")

</div>

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