# Regexp query is not working in elastaicsearch5.6

**URL:** <https://discuss.elastic.co/t/regexp-query-is-not-working-in-elastaicsearch5-6/144300>\
**Category:** Elasticsearch\
**Created:** [August 14, 2018, 8:37am UTC](https://discuss.elastic.co/t/regexp-query-is-not-working-in-elastaicsearch5-6/144300 "2018-08-14T08:37:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_P\_S](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@Vishnu\_P\_S](https://discuss.elastic.co/u/Vishnu_P_S)\
**Post date:** [August 14, 2018, 8:37am UTC](https://discuss.elastic.co/t/regexp-query-is-not-working-in-elastaicsearch5-6/144300/1 "2018-08-14T08:37:37Z")

</div>

Hi I am working on elasticsearch 5.6.3, when I search with a query like  
`?q = Sample schema 3`. Then this will return all records having any of these words sample,schema. Then I tried to search with `?q= *Sample*schema*3*` , this one actually worked in elasticsearch 6.3.0 and returned record which have the value Sample schema 3. But when I used the same in elasticsearch 5.6.3 its returning nothing. Please help me to use the regexp correctly. Thanks 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:** [September 11, 2018, 8:37am UTC](https://discuss.elastic.co/t/regexp-query-is-not-working-in-elastaicsearch5-6/144300/2 "2018-09-11T08:37:38Z")

</div>

Closed on September 11, 2018, 8:37am UTC

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