Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.