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

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

Re: How to highlight-regexp across multiple lines


From: Thorsten Jolitz
Subject: Re: How to highlight-regexp across multiple lines
Date: Fri, 04 Apr 2014 15:26:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Angus Comber <anguscomber@gmail.com> writes:

> (highlight-regexp "aPDU[^^@]+[\}]$" (quote hi-yellow))

> I am still a little puzzled though because I have multiple closing braces
> followed by linefeeed in the aPDU's.  But anyway, it works!

Probably because + is greedy and looks for the longest possible
match. You could check if it still works with non-greedy +?.

-- 
cheers,
Thorsten




reply via email to

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