Connecting Tech Pros Worldwide Help | Site Map

IDE and Regular expression search/replace

DaveJG
Guest
 
Posts: n/a
#1: Jul 21 '05
I have a couple of questions involving the search/replace in the IDE
and regular expressions. Any help would be greatly appreciated.

1. How would I replace two line feeds with one? That is

Var1 = 1

Var2 = 2

becomes

Var1 = 1
Var2 = 2

2. How would I insert a line feed? Perhaps I had:

Catch ex As System.Exception
Throw New Exception(ex.Message)
End Try

And I wanted

Catch ex As System.Exception
mmyDataAcc.LogErr(ex)
Throw New Exception(ex.Message)
End Try
Closed Thread