Re: Problem with regexp and text injection

2007-10-21 Thread chris . monsanto
On Oct 21, 6:22 pm, Panagiotis Atmatzidis <[EMAIL PROTECTED]> wrote: > Hello, > > I want to create a script in python that search for .html files in the > predefined directory and subdirectories. Then it checks if a specific > snippet of code exists in the .html file, if not it injects/adds the > c

Problem with regexp and text injection

2007-10-21 Thread Panagiotis Atmatzidis
Hello, I want to create a script in python that search for .html files in the predefined directory and subdirectories. Then it checks if a specific snippet of code exists in the .html file, if not it injects/adds the code right below the string otherwise bypasses the file. I wrote the first part