Viltedali
Regular Member
- Feb 10, 2008
- 310
- 34
Is anyone aware of a free, preferably lightweight application that can do a search and replace for multiple lines for multiple files?
For example, I have a PHP script that has maybe 20 lines of code that I want to replace with just one line of code - "<?php include("footer.php"); ?>", and I have about 100 files that need this change.
I have the program "Programmers Notepad 2" that has a bulk search and replace feature, but it seems to me that you cannot replace more than one line. It gives you the option of using regular expressions, but I know nothing about them and if they would be the solution or not.
For example, I have a PHP script that has maybe 20 lines of code that I want to replace with just one line of code - "<?php include("footer.php"); ?>", and I have about 100 files that need this change.
I have the program "Programmers Notepad 2" that has a bulk search and replace feature, but it seems to me that you cannot replace more than one line. It gives you the option of using regular expressions, but I know nothing about them and if they would be the solution or not.