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

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

RE: how can I make regexp expression effective across many lines


From: Drew Adams
Subject: RE: how can I make regexp expression effective across many lines
Date: Mon, 29 Jan 2007 13:40:26 -0800

> Hi, there, I have problem with newlines in regexp. Here is what I want
> to do: delete anything between <FORM> to TIP OF THE WEEK inclusively.
> There are many lines in between. Any regex I tried can not go through
> the newline. Any idea? Thanks.

 . matches any character except a newline character.
 [^\n] matches any character.

Interactively, use C-q C-j to insert a newline character itself in the
regexp, in place of \n. See the Elisp manual, node Syntax of Regexps, in
particular about the treatment of backslash.






reply via email to

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