Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to convert all the deques in my python code to lists. I.e. deque() should become . I tried M-% deque(\(.+\)) RET \1 RET, but it said Replaced 0 occurences. What's wrong with my regexp?
M-% deque(\(.+\)) RET \1 RET
Replaced 0 occurences
Try C-M-% instead of M-%. You want query-replace-regexp, not query-replace.
Required, but never shown