|
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* spantwo 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
[Prev in Thread] | Current Thread | [Next in Thread] |