On Sun, Nov 06, 2022 at 12:10:47PM +0300, Jean Louis wrote: > > Is there any Emacs function to automatically escape regex characters > for regex searches? > > For example I wish to search for "- [ ]" but I wish to automatically > escape that, not in hard coded way, but in such way that I can use any > string and that regex character like "[ ]" get escaped. regexp-quote Cheers -- t