Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!ihnp4!oddjob!matt From: matt@oddjob.UChicago.EDU (Schizophrenic Solipsist) Newsgroups: comp.emacs Subject: Re: GNU Emacs string modification question Message-ID: <14710@oddjob.UChicago.EDU> Date: 27 Apr 88 18:04:51 GMT References: <11715@tut.cis.ohio-state.edu> Organization: Audible Boy Birdwatcher Society Lines: 13 Karl Kleinpaste writes: ) I have a variable which has been setq'd to a string value. The string ) may contain characters which are special to RE searches, but I need ) the characters to be used literally in searches. regexp-quote: Return a regexp string which matches exactly STRING and nothing else. ) plain search-forward will not do, due to ) the need to find "[:!]" following the newsgroup name. (re-search-forward (concat (regexp-quote newsgroup) "[:!]")) Matt