hiddenpearls
asked on
php script for text search and replace from files
hi,
I'm in a need of a php script in which text could be searched and replace in mass batch files.
what is the best of doing mass search and replace btw ?
&
is there any tool for this purpose ?
I'm in a need of a php script in which text could be searched and replace in mass batch files.
what is the best of doing mass search and replace btw ?
&
is there any tool for this purpose ?
Depending on your platform, perl or sed might be better tools for the job.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@ray
possibly this would work, your suggested logic is fine.
but is there any best algorithm or any existed script ?
possibly this would work, your suggested logic is fine.
but is there any best algorithm or any existed script ?
No, I don't think you will find an existing script -- it's only a few lines of code and entirely dependent on the names of your files and directories. Sort of like cooking a meal in your own kitchen.