# Wildcard / regexp in a phrase which has space

**URL:** <https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962>\
**Category:** Elasticsearch\
**Created:** [February 1, 2018, 8:21am UTC](https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962 "2018-02-01T08:21:21Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 2, 2018, 2:10pm UTC](https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962/21 "2018-02-02T14:10:22Z")

</div>

replace edge ngrams by ngrams.

---

<div class="post-metadata">

**Author:** ![anoopvalluthadam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anoopvalluthadam/32/30286_2.png) [@anoopvalluthadam](https://discuss.elastic.co/u/anoopvalluthadam)\
**Post date:** [February 5, 2018, 3:09am UTC](https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962/23 "2018-02-05T03:09:40Z")

</div>

Thanks! combination of ngram and edge\_gram works properly.

---

<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:** [March 5, 2018, 3:10am UTC](https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962/24 "2018-03-05T03:10:03Z")

</div>

Closed on March 5, 2018, 3:10am UTC

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

[Previous page](https://discuss.elastic.co/t/wildcard-regexp-in-a-phrase-which-has-space/117962.md?page=1)
