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

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

Re: font-lock and fontifying the few first nonempty lines in a buffer


From: Sandip Chitale
Subject: Re: font-lock and fontifying the few first nonempty lines in a buffer
Date: 27 Jun 2003 18:01:14 -0700

"Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in 
message news:<5lisqr5ume.fsf@rum.cs.yale.edu>...
> >     "\\`\\(\\(.+\n\\)\\{1,7\\}\\)\n"
> 
> You can also try "\\`\\(\\(.+\n\\)*?\\)\n".
> 

"\\(\\`\\(?:\\(?:.+\n\\)*?\\)\n\\)"
with match data set to the whole match.

You can interactively experiment with this stuff using

M-x re-builder <RET>


reply via email to

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