help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regexp issue


From: Alan Mackenzie
Subject: Re: Regexp issue
Date: Sat, 20 Jun 2009 12:47:05 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386))

Peter Dyballa <Peter_Dyballa@web.de> wrote:

> Am 20.06.2009 um 12:17 schrieb Alan Mackenzie:

>> Or, more precisely,

>>         \(^\|[^<]\)=>


> The imprecise form works for me in GNU Emacsen 22.3 and 23.0.94 (to  
> find => at the beginning of a line) ...

Only at the beginning of _some_ lines.  ;-)

Actually, come to think of it, both of our regexps are wrong.  Neither
of them will find "=>" at point in the middle of a line.  Better would
be
          \(\=\|[^<]\)=>

.  But even that will "fail" if point is at "=" in "<=>", for some
reasonable value of "fail".  By now, the OP is probably wishing he hadn't
bothered asking this question.  ;-)

>   Pete

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]