Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!husc6!cmcl2!brl-adm!umd5!purdue!decwrl!labrea!csli!evan From: evan@csli.STANFORD.EDU (Evan Kirshenbaum) Newsgroups: comp.emacs Subject: Insert regexp function? Message-ID: <3670@csli.STANFORD.EDU> Date: 28 Apr 88 18:08:11 GMT Reply-To: evan@csli.UUCP (Evan Kirshenbaum) Organization: Center for the Study of Language and Information, Stanford U. Lines: 21 I'm looking for the inverse of regexp-quote. In an application, I'm searching for a regular-expression, and if I don't find it I want to be able to insert something which the regexp matches (preferably one of the first things it matches). Thus if the regexp was "Title:? +", it should insert "Title " (or "Title: ") I could probably write such an animal if necessary, but it looks sufficiently hairy that I thought I'd wait and see whether this was built-in and I couldn't find it or if anybody else had already done it. --- Evan Kirshenbaum Stanford University evan@csli.Stanford.EDU ...!ucbvax!csli.stanford.edu!evan If you think my opinions represent this university, you haven't been on campus recently!