# Can I somehow use spaces in elasticsearch regexp?

**URL:** <https://discuss.elastic.co/t/can-i-somehow-use-spaces-in-elasticsearch-regexp/20160>\
**Category:** Elasticsearch\
**Created:** [October 9, 2014, 11:03am UTC](https://discuss.elastic.co/t/can-i-somehow-use-spaces-in-elasticsearch-regexp/20160 "2014-10-09T11:03:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitriy\_Bashkalin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitriy_bashkalin/32/46359_2.png) [@Dmitriy\_Bashkalin](https://discuss.elastic.co/u/Dmitriy_Bashkalin)\
**Post date:** [October 9, 2014, 11:03am UTC](https://discuss.elastic.co/t/can-i-somehow-use-spaces-in-elasticsearch-regexp/20160/1 "2014-10-09T11:03:00Z")

</div>

Hello, I need to find some phrases using regexp, f.e.,  
[0-9]{5}\s[\S]{5}[0-6]{2}. But for elastic this is two different terms.  
I can find [0-9]{5} and [\S]{5}[0-6]{2} but not together.  
I have no idea how I can resolve this.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/099a4053-aa0b-440c-b60c-82c6eca8618e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/099a4053-aa0b-440c-b60c-82c6eca8618e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:57am UTC](https://discuss.elastic.co/t/can-i-somehow-use-spaces-in-elasticsearch-regexp/20160/2 "2017-07-06T00:57:20Z")

</div>


