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

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

Regexp to match any character, including newline?


From: Gian Uberto Lauri
Subject: Regexp to match any character, including newline?
Date: Mon, 6 Oct 2003 10:20:09 +0200

>>>>> "JF" == Joe Fineman <address@hidden> writes:

JF> It is sometimes a nuisance that "." in a regexp does not match
JF> newlines.  For example, I want a regexp for text in parentheses that
JF> contains the word "and" followed (anywhere) by a date.

JF>   (.+ and .+ [1-2][0-9][0-9][0-9].+)

What about something like:

\(.*[\n]\) 

;; Warning, can cause regexp stack overflow.

font-lock has should font-lock-multiline (HOW????) since Emacs 21

 /\            ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
  //--\ | | \|  |   Integralista GNUslamico e fancazzista 
\/





reply via email to

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