From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ryan Bowman Newsgroups: gmane.emacs.help Subject: RE: RegExp question Date: Fri, 24 Sep 2004 12:43:21 -0700 (PDT) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040924194321.58270.qmail@web51603.mail.yahoo.com> References: <1095970988.415330ac9b789@www.bluebottle.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096055284 3937 80.91.229.6 (24 Sep 2004 19:48:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2004 19:48:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 21:47:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAw2n-0002yk-00 for ; Fri, 24 Sep 2004 21:47:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAw8s-0000at-AD for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Sep 2004 15:54:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAw8i-0000an-3F for help-gnu-emacs@gnu.org; Fri, 24 Sep 2004 15:53:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAw8f-0000ab-LD for help-gnu-emacs@gnu.org; Fri, 24 Sep 2004 15:53:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAw8f-0000aY-I7 for help-gnu-emacs@gnu.org; Fri, 24 Sep 2004 15:53:53 -0400 Original-Received: from [206.190.38.208] (helo=web51603.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1CAw1a-0003H0-EP for help-gnu-emacs@gnu.org; Fri, 24 Sep 2004 15:46:34 -0400 Original-Received: from [128.187.0.165] by web51603.mail.yahoo.com via HTTP; Fri, 24 Sep 2004 12:43:21 PDT Original-To: help-gnu-emacs@gnu.org In-Reply-To: <1095970988.415330ac9b789@www.bluebottle.com> 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20871 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20871 --- JayBingham wrote: > On Thursday, September 23, 2004 11:42 AM Ryan Bowman > wrote: > > > So I changed it to this "repeat\\(-[xy]?\\)?[^:]" > > so it won't match background-repeat: but then it > no > > longer matches repeat, > > I assume because [^:] actually means to match > > something, but not a ':' > > so how do I specifiy that I don't care if anything > > follows the patter or not, > > so long as it is NOT ':'? > > I am curious which version of emacs you are running. > I have emacs > 21.2 loaded on my Windows 2k system and the above > regexp matches > every repeat in your message except those followed > by a ":" and one > that I added at the end of the buffer which does not > have anything > following it. You are correct in your assumption > that [^:] actually > means to match something. Remember that a new line > is something, as > opposed to nothing. This means that when repeat > occurs at the end of > a line the new line is included in the matched > string and point will > follow it (be at the start of the next line) so it > may appear that it > was not matched. > > the list> > > -_ > J_) > C_)ingham > . Hewlett-Packard > . Austin, TX > . “Language is the apparel in which your thoughts > parade in public. > . Never clothe them in vulgar and shoddy attire.” > -Dr. George W. > Crane- > > > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > ===== --- Ryan The door at the end of the tunnel is far too small... - Closing In 2.0 - Don't Be Afraid - Information Society - insoc.org --- __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com