search-replace

I want to search a directory and replace all occurrences of a word in emacs

Possible Duplicate: Using Emacs to recursively find and replace in text files not already open I am using emacs and want to replace a word (well, all functions called foo() to foobar()) for all occurrences in a directory of source files. What is the best way to do this? ...

Exact string replacement in php

Hi, I'm looking for a way to replace a string in php that exactly matches with the subject. For example I got a file named 'hello-world.txt' having three lines: 'http://www.example.com/' 'http://www.example.com/category/' 'http://www.example.com/tag/name/' and I need to replace the 'http://www.example.com/' with 'http://www.example2....