<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 17:57:09 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Search & replace in files using php]]></title>
      <guid>http://www.phpdeveloper.org/news/12496</guid>
      <link>http://www.phpdeveloper.org/news/12496</link>
      <description><![CDATA[<p>
On his blog today <i>Sameer Borate</i> has posted <a href="http://www.codediesel.com/php/search-replace-in-files-using-php/">a quick tutorial</a> on how to use a <a href="http://pear.php.net/package/File_SearchReplace/download">PEAR package</a> to do search and replace on your files from inside of PHP.
</p>
<blockquote>
Searching and replacing content in files is a common task all of us do regularly. [...] Search/replace is easier from a shell prompt or an editor, but what if you have to do the same programatically in php. <a href="http://pear.php.net/package/File_SearchReplace/download">File_SearchReplace</a> is a pear package that helps you search/replace in files through a nice object oriented interface.
</blockquote>
<p>
Installation is simple (via the "pear" command line tool) and using it is just as easy. He gives a few examples of how it can be used - everything from a simple find and replace out to a more complicated regular expression search to be replaced with a string.
</p>]]></description>
      <pubDate>Tue, 12 May 2009 09:30:47 -0500</pubDate>
    </item>
  </channel>
</rss>
