24

I want to look for questions/answers in which !$ appears. I type !$ in the Search bar in https://stackoverflow.com/search and I get 0 results. I also try escaping those symbols \!\$ and still nothing.

I went through How do I search but couldn't find anything related to this special characters.

How should I search for such characters?

3

3 Answers 3

21

This is possible with the regular search!

Just use code:"!$" to search for all occurrences of !$ in code.

2
9

Sadly, SE elasticsearch ignores symbols. You should use other tools, like http://symbolhound.com/, as suggested by l4mpi to obtain results.

0
4

You can use https://data.stackexchange.com/ but you need to know a modicum of SQL and probably familiarize yourself with the SE database schema a bit.

Here is a query I composed to search for $* and $@ in [bash] questions just now. You should be able to fork it and adapt it for your own needs.

https://data.stackexchange.com/stackoverflow/query/355107/code-search-and-bash-or-sh

Somebody who is more familiar with the platform would perhaps be able to generalize it and encapsulate it into a useful search engine for the SE family of sites. As it is, there is certainly a bit of a threshold.

2
  • Oh, I see now that @rene's comment eventually leads to a similar, but somewhat more featureful query; data.stackexchange.com/stackoverflow/query/284162
    – tripleee
    Commented Aug 26, 2015 at 11:08
  • 1
    The unfortunate drawback of this is the fact that the results may be up to a week old. I have also run into problems with timeouts, but I will just chalk that up to the fact that I was trying to run broad LIKE queries...
    – Laurel
    Commented May 16, 2016 at 14:21

Not the answer you're looking for? Browse other questions tagged .