best find & replace?

Status
Not open for further replies.

mike82

New member
Mar 3, 2007
121
0
0
whats the best find and replace tool that lets me find and replace text on more than one line?
 


With textpad,

can you replace text on more than one line and does it work with files saved as htm(l)?

i.e. lets say i have a whole paragraph of code that i want to replace with different code.
 
+1 for textpad

and yes you can replace on more than one line. The older versions used to have multiple lines on their replace dialog box but now the newer just uses one and relies on regex so you can get all the different return characters.
To replace multiple lines just use \n to indicate the line return and yes it does work with html or any other type of ascii file.

If an example will help here's how to remove the quotes from a bunch of strings enclosed in quotes.
"line one"
"line two"
"another line"
"some quotes "inside" of the string"

Edit >> Replace >> Check regular expression
Replace: "\n"
With: \n
 
download cygwin and use the sed command at the command prompt. Works great if you got to string replace lots of files.
 
assuming windows... afr (advanced find and replace)

Multi line search and replace across multiple files. Very easy to use. Haven't tried textpad, i'll have to check it out.
 
Status
Not open for further replies.