# Escaping the "#" character in search

**URL:** <https://meta.discourse.org/t/escaping-the-character-in-search/67249>\
**Category:** Bug\
**Created:** [Agosto 1, 2017, 2:10pm UTC](https://meta.discourse.org/t/escaping-the-character-in-search/67249 "2017-08-01T14:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Agosto 1, 2017, 10:20pm UTC](https://meta.discourse.org/t/escaping-the-character-in-search/67249/8 "2017-08-01T22:20:46Z")

</div>

The OP is fixed per

[https://github.com/discourse/discourse/commit/97fa64d8468ab91265c9a8b1b9f42e62c40ca8de](https://github.com/discourse/discourse/commit/97fa64d8468ab91265c9a8b1b9f42e62c40ca8de)

Keep in mind # in search is used as a special delimiter to search for tags and categories, I added a bypass here if there are zero matching categories and tags. However, if you do a search for say #docker on meta, it will not find this post cause docker is a legit tag name.

There is an open question to @codinghorror on weather we should allow unqualified `#TAG` as opposed to requiring qualification for tags like the auto complete adds (eg: for tag search require `#docker::tag` and always pass through `#docker` )

I am mixed on changing this cause the bypass should be good enough ™

Leaving open so @tgxworld can sort out the extreme problem of “test” in our infrastructure and look at autocomplete which is weird.

@tgxworld feel free to split this up and close if you wish.

---

_[View the full topic](https://meta.discourse.org/t/escaping-the-character-in-search/67249)._
