
pattern matching across two lines
If you have the sam text editor and you want to make
ALL "foo bar" into "foobar" whether there is a space
or a newline between the two words, you'd just do the
real real obvious, match the foo*bar and delete either
the space or the newline:
/foo( |\n)bar/ . . . etc, where \n could be ^M
Duh . . .
Quote:
>I have text as follows:
>foo^M
>bar
>in several files. I need to replace this with:
>foobar
>How can I match patterns across two lines?
>Thanks,
>Sent via Deja.com http://www.*-*-*.com/
>Before you buy.