# Need help with searching text with special characters

**URL:** <https://discuss.elastic.co/t/need-help-with-searching-text-with-special-characters/223172>\
**Category:** Elasticsearch\
**Created:** [March 11, 2020, 3:37pm UTC](https://discuss.elastic.co/t/need-help-with-searching-text-with-special-characters/223172 "2020-03-11T15:37:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Lisahtwy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lisahtwy/32/53910_2.png) [@Lisahtwy](https://discuss.elastic.co/u/Lisahtwy)\
**Post date:** [March 17, 2020, 4:16pm UTC](https://discuss.elastic.co/t/need-help-with-searching-text-with-special-characters/223172/5 "2020-03-17T16:16:16Z")

</div>

Hi David,  
Thank you so much for your reply.  
I created a custom analyzer( whitespace tokenizer) and added mapping to the index then re indexed according to your old post. ([Conflicts with existing mapping](https://discuss.elastic.co/t/conflicts-with-existing-mapping/119727/19))  
then used the same search query with regex pattern.  
Don't know this is the best process or not, but it is working as expected.

Thanks for the great support!  
-Lisa

---

_[View the full topic](https://discuss.elastic.co/t/need-help-with-searching-text-with-special-characters/223172)._
