Class Text Search Replace : New Update
Today I made an update of my class “Text Search Replace” at PHPClasses.org. This update will increase the search capability of the class. The initial release of the class could not search some special characters (well, I just forgot & missed this to put with the initial release). Later a user of this class (his name is “Robert”) noticed the problem and asked me for a solution. I was too busy to touch the class. But I managed time and fixed it. You can now work with special characters(especially the ones are part of regular expression syntax). I am sure this fix has increased the usability of this class to a large extent.
Please download the latest version from here:
http://www.phpclasses.org/browse/package/3211.html
Special thanks to Robert who noticed and informed me about the problem.
If you are a user of this class, please send me bugs, etc so I can work to improve its performances.
–
Rupom





Gday,
First off I just like to say I really like your website as it has been a great help to me. SoI thought I would just alert you to a small bug that I found in this script.
The bug is to do with the variable caseSentive. On line 65 you have it as caseSensitivity, the script will still run but it does throw up an error. All you have to do is change it to caseSensitive and the error goes away.
if($caseSensitivity)
{
$this->$caseSensitive = 1
}
returns and error Undefined variable $caseSensitivity on line 65
It should be:
if($caseSensitive)
{
$this->$caseSensitive = 1
}
Regards
Ben
Hi Ben,
Thanks for your help. I just updated the class. It was a mistake that I didnt notice.
Thanks again.
–
Rupom
Hi Rupom,
can u tell how can we convert your script multi search and replace ?? is it possible ?
Please explain your requirement with an example.
This is quite a hot info. I think I’ll share it on Twitter.