View Full Version : Recommend a good find/replace tool?

08-21-2006, 12:39 PM
Not sure if this belongs in this section...

I have about 100 php files in my site and I want to update all the
places where I use: strip_tags(trim(
with sql_safe(trim(
so that my safer fuction can be used everywhere.

I don't use dreamweaver so I was thinking - is there a tool that can do a find and replace on all the files in one directory ?

I am sure most developers need this - so I guess there is a tool somewhere ?

Anyone know where I can find one - preferably free :)


08-21-2006, 01:10 PM
try finding some find and replace tool for this...
i tried to use html search and replace
you can try it for free.

08-21-2006, 07:31 PM
Try jReplaceThem. (http://www.sharewareplaza.com/JReplaceThem-download_5048.html)

08-21-2006, 11:50 PM
A decent text editor will do the job… I use "find in project…" a bunch in TextMate.

Mike Good
08-22-2006, 12:12 AM
Use Notepad+. That's what I use.

08-22-2006, 04:56 PM
use sed

08-23-2006, 12:12 PM
Thanks for your replies.

What is sed ?

I tried to download jReplaceThem.
from the link but the downloads links took me to

Welcome to pokw.com which contained pages of stuff - couldn't find
the jReplaceThem.

08-24-2006, 12:05 AM
Try this link: http://javaboutique.internet.com/JReplaceThem/

08-24-2006, 04:20 PM
sed is the GNU stream editor tool. It allows you to manipulate ascii streams. Super powerful once you figure it out. The most common use is to apply regular expressions to every filename that matches a pattern in one simple shell command:

sed -i -e {s/someIncludeFileName.php/newIncludeFile.php/g} *.php

Now come on. How can any GUI tool compete with that!

08-25-2006, 03:00 AM
I have a tag-a-long question with this.

Anybody know of a program that can find and replace randomly? What Im talking about is some that does this:


replace with

where when it replace the word apple it would either randomly insert one of the other 4 fruits or even just go down the list and repeat the process.

08-28-2006, 04:55 PM
no program, but you can write your own script for it, in any number of environments. You could use perl, or bash, or csh, or php. You could even write your own utility and compile it and distribute it.