(use irregex) (irregex-search "[\\]d" "1 \\dupe!") ;; Here's what I got when I ran the above. I was hoping to match "\\d" ;; Error: incomplete char set ;; "[\\]d" ;; 4 ;; 4 ;; Call history: ;; (irregex-search "[\\]d" "1 \\dupe!") ;; (irregex-search "[\\]d" "1 \\dupe!") <--