[Top][All Lists]

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

Re: occur "^[^#]" gets next line too

From: Andreas Schwab
Subject: Re: occur "^[^#]" gets next line too
Date: Thu, 09 Oct 2003 11:50:19 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Dan Jacobson <address@hidden> writes:

> Well gosh, occur throws in the next line for free:
> (occur "^[^#]" nil)
> 79 lines matching "^[^#]" in buffer options.

[^#] matches a newline.  If you don't want that fix your regex.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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