Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to Find instances of the substring [^,] which — the word which preceded by a space '' that is preceded by a character that is not a comma [^,]. Can this be done?

The query [,] which works fine but the negation breaks the regex. Is there a special syntax in MS Word or is this not available within the Find/Replace dialogue?

When I try this query I get the Warning dialogue, ^ is not a valid special character for the Find What box or is not supported when the Use Wildcards check box is selected

share|improve this question
up vote 3 down vote accepted

Use [!,]; from this article:

t[!a-m]ck finds "tock" and "tuck," but not "tack" or "tick."

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.