Link to home
Start Free TrialLog in
Avatar of hiddenpearls
hiddenpearlsFlag for Pakistan

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 ?
Avatar of Justin Mathews
Justin Mathews

Depending on your platform, perl or sed might be better tools for the job.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hiddenpearls

ASKER

@ray

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.