I want to convert all the deques in my python code to lists. I.e. deque([1]) should become [1]. I tried M-% deque(\(.+\)) RET \1 RET, but it said Replaced 0 occurences. What's wrong with my regexp?


Try C-M-% instead of M-%. You want query-replace-regexp, not query-replace.

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.