Re: Substituting string in many files

2007-04-08 Thread BTR Naidu
Hi, You may need to open individual files by using some for loop and after reading all the contents of a single fine in a string, try applying a regular expression something like this - $FileContent =~ s/\.html/.php/g; Once regular expression succesully applied, write back the string into the

Re: Substituting string in many files

2007-04-07 Thread Ricky Zhou
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mário Gamito wrote: > My question is how do i change all ocorrences of the string ".html" to > ".php" inside all the files to change the links for all pages in a snap ? Awww, use Perl to change the links, but use PHP for server-side scripting, huh? :(

Substituting string in many files

2007-04-07 Thread Mário Gamito
Hi, I have thos huge site that is (was) all in .html files. I've made it dinamyc in PHP and changed all the filename extensions from .html to .php My question is how do i change all ocorrences of the string ".html" to ".php" inside all the files to change the links for all pages in a snap ? I've

Substituting string in many files

2007-04-07 Thread Mário Gamito
Hi, I have thos huge site that is (was) all in .html files. I've made it dinamyc in PHP and changed all the filename extensions from .html to .php My question is how do i change all ocorrences of the string ".html" to ".php" inside all the files to change the links for all pages in a snap ? I've