From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Bretfeld Newsgroups: gmane.emacs.help Subject: Re: Why are RegExps never working? Date: Mon, 12 Nov 2007 00:24:42 +0100 Message-ID: <87ode04b7p.fsf@kamaloka.dhatu> References: <87lk94oozv.fsf@kamaloka.dhatu> <87abpkolme.fsf@kamaloka.dhatu> <66BB130D-350E-44AF-AA95-23572B99AAD4@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1308785331==" X-Trace: ger.gmane.org 1194823537 24376 80.91.229.12 (11 Nov 2007 23:25:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2007 23:25:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 00:25:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IrMBP-0000Ut-Q5 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2007 00:25:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrMBD-00069H-HM for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2007 18:25:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrMB0-00068y-AA for help-gnu-emacs@gnu.org; Sun, 11 Nov 2007 18:25:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrMAw-00068l-Qa for help-gnu-emacs@gnu.org; Sun, 11 Nov 2007 18:25:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrMAw-00068i-K8 for help-gnu-emacs@gnu.org; Sun, 11 Nov 2007 18:25:10 -0500 Original-Received: from viefep18-int.chello.at ([213.46.255.22] helo=viefep24-int.chello.at) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrMAw-0007XK-7I for help-gnu-emacs@gnu.org; Sun, 11 Nov 2007 18:25:10 -0500 Original-Received: from kamaloka.dhatu ([80.219.162.86]) by viefep24-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20071111232508.MFFG11550.viefep24-int.chello.at@kamaloka.dhatu> for ; Mon, 12 Nov 2007 00:25:08 +0100 In-Reply-To: <66BB130D-350E-44AF-AA95-23572B99AAD4@Web.DE> (Peter Dyballa's message of "Sun, 11 Nov 2007 16:52:04 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49144 Archived-At: --===============1308785331== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Peter Dyballa writes: > I'm not sure whether it's described so clearly. The main thing is that > text is line oriented and therefore $ states end of line. And > therefore regular expressions end at line's end. So in the middle of > the from part $ cannot have another meaning than the character $ > itself. If the from part has to stretch over more than one line, then > each line ending has to be expressed with the linefeed character that > separates the text into more than one line. Could be sometimes a > carriage return (^M) has to be used, or some combination of carriage > return and linefeed ... Aha, I see. Now, more things I noticed in my few experiences with RegExps become clear. Sometimes I search and replace longer regexps and wonder why some are always skipped. Now I understand: these are the ones extending over more than one line. Thank you Sven --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHN49HV5JTHLAduAYRAuhWAJ95kIcZCw2Nf5yPweAo7vvZUpx0xwCdEzcE Y/L/TgbgMB+lEEbgoKhS6lk= =wcWx -----END PGP SIGNATURE----- --=-=-=-- --===============1308785331== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1308785331==--