# Egexp query not working

**URL:** <https://discuss.elastic.co/t/egexp-query-not-working/78471>\
**Category:** Elasticsearch\
**Created:** [March 14, 2017, 8:38am UTC](https://discuss.elastic.co/t/egexp-query-not-working/78471 "2017-03-14T08:38:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkspace](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dkspace](https://discuss.elastic.co/u/dkspace)\
**Post date:** [March 14, 2017, 8:38am UTC](https://discuss.elastic.co/t/egexp-query-not-working/78471/1 "2017-03-14T08:38:39Z")

</div>

it`s strange but widcard query is working  
{  
"query": {  
"wildcard": {  
"NE\_Name": "\*L"  
}  
}  
}

{  
"took": 7,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 1285,  
"max\_score": 1,  
"hits": [  
{  
"\_index": "pm-  
........  
....  
..

But regexp query not working. I mean responce is empty

{  
"query": {  
"regexp": {  
"NE\_Name": "\*L"  
}  
}  
}

{  
"took": 1,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": null,  
"hits": []  
}  
}

Why ?

---

<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:** [April 11, 2017, 8:38am UTC](https://discuss.elastic.co/t/egexp-query-not-working/78471/2 "2017-04-11T08:38:41Z")

</div>

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