I would think this was really simple. I am trying to match closing delimiters in Emacs Lisp regex. I can match {}()[ no problem, but I cannot match ]. I have been using re-builder and have tried "[\\}\\)\\]]", "[\\}\\)]]", "[\\}\\)\\\]]", "[\\}\\)\\\\]]"and it still won't match the closing square bracket. The brace and the parenthesis match just fine. What am I doing wrong?


1 Answer 1


Put the ] as the first character after the [ which starts the character class, e.g.


This is the manual page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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