# Matching words with special character

**URL:** <https://discuss.elastic.co/t/matching-words-with-special-character/83331>\
**Category:** Elasticsearch\
**Created:** [April 23, 2017, 5:52pm UTC](https://discuss.elastic.co/t/matching-words-with-special-character/83331 "2017-04-23T17:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Extria](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Extria](https://discuss.elastic.co/u/Extria)\
**Post date:** [April 23, 2017, 5:52pm UTC](https://discuss.elastic.co/t/matching-words-with-special-character/83331/1 "2017-04-23T17:52:08Z")

</div>

Hello,

I am new to Elasticsearch and I encountered a problem. I have a field - skills in which there are values like:  
Mysql,  
$Mysql,  
mysql@,  
mysql and python,  
mysql mongo and perl,  
mysql. )  
and so on. What I am trying to do is to write search query which would match: input mysql with exact values from that field and exact values + special characters.  
So it should look like this:  
input = mysql  
search results should show: Mysql, $Mysql, mysql@, mysql. )  
But shouldn't show: mysql and python, mysql mongo and perl  
I tried using regexp but, it still throws all results.

---

<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:** [May 21, 2017, 5:57pm UTC](https://discuss.elastic.co/t/matching-words-with-special-character/83331/2 "2017-05-21T17:57:26Z")

</div>

Closed on May 21, 2017, 5:57pm UTC

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