Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

The underscore _ is a valid character in user names, but when searching users on, it is treated as a wildcard(!), not as a character. For example, when I type w_of__ in the search box, then not only the user shadow_of__soul appears in the search results, but also, e.g, BiscutWoofington. The user Wooff is not shown, which makes sense since it's only 5 characters long and thus doesn't match the pattern w?of??.

This leads me to the following questions:

  1. Is the above behaviour a or ?
  2. Shouldn't _ be treated as a normal character, and ? be used as a wildcard instead?
  3. What characters other than letters and digits are allowed in user names? So far I found spaces and . - ' _.

(Some testing indicates that underscores are treated just like letters and digits in comment notifications.)

share|improve this question
Wow! I didn't know we had wildcards. Could we please keep them? – M. Tibbits Aug 31 '11 at 21:58
up vote 3 down vote accepted

We allow the following regex in search: \w' \.\- there was minor oversight that meant I did not disable the _ wildcard that is passed in to the search LIKE clause.

I fixed that, it is way too non-intuitive to find. So now, there are no more wildcards for username search.

I dislike the idea of adding * and ? wildcards. This feature is a bit dangerous and performance is somewhat random depending on the position of the wildcard.

share|improve this answer
Thanks for the fix! However, it's a pity that there are no wildcards anymore. I don't care for *, but implementing ? would be nice in my opinion. – Hendrik Vogt Sep 22 '11 at 8:41

You must log in to answer this question.

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