Article View: gnu.emacs.help
Article #188982Newlines in regexps
From: David Smith
Date: Sat, 25 May 1991 03:23
Date: Sat, 25 May 1991 03:23
18 lines
1490 bytes
1490 bytes
I seem to be having a little trouble with regexps that require newlines. Say for example I want to convert standard quotes (like "arglebarge") into TeX-style quotes (like ``arglebarge''), but where the quote can span one ore more lines. I've tried things like regexp-replacing "\(\(^J\|.\)*\)" with ``\1'', but the newline seems to cause problems. Of course, to get the newline I have to use quoted-insert, but when I enter it it clears the minibuffer (but it still gets inserted into the regexp). But the above regexp still doesn't work! I guess what I am really asking is: is there an easy way to put newlines in regexps? Dave. ------------------------------------------------------------------- |David Smith <dsmith@spam.ua.oz.au>| |Department of Statistics, University of Adelaide, South Australia| -------------------------------------------------------------------
Technical Details
Message-ID:
<DSMITH.91May25125350@spam.ua.oz.au>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!spam!spam.ua.oz.au!dsmithShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,4118438ef0f66e70,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-24 22:04:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!spam!spam.ua.oz.au!dsmith From: dsmith@spam.ua.oz.au (David Smith) Newsgroups: gnu.emacs.help Subject: Newlines in regexps Message-ID: <DSMITH.91May25125350@spam.ua.oz.au> Date: 25 May 91 03:23:50 GMT Sender: dsmith@spam.ua.oz Distribution: gnu Organization: Adelaide University. Lines: 18