Does anyone know of any FTP or other software that will search for a string within your php files that are on the server (in the raw code)?

For example I want to search for "<div id='thetitle'>" and/or "<?php $var1 = 3;" within a directory of PHP files on the server.

Any thoughts?