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

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

Re: line-spanning regexp


From: Greg Hill
Subject: Re: line-spanning regexp
Date: Tue, 14 Jan 2003 17:47:03 -0800

At 3:59 PM -0800 1/14/03, Tennis Smith wrote:
Hi,

How do I construct a regexp that looks for two strings that *might* span
two consecutive lines?
For example, I need a regexp that will find string1 and string2 and
everything in between for the following scenarios:


blah blah blah blah string1 blah blah string2 blah blah blah

-OR-

blah blah string1 blah
string2 blah blah

TIA,
-Tennis

"string1[^\n]*[\n]?[^\n]*string2"

--Greg




reply via email to

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