hi, what's the the most efficient way to find text files in different directories and then run regex to those found files. I will run php/scripts locally.
Let's say I have D:\Script\ where i want to run my script from and D:\Script\folder_01, D:\Script\folder_02, etc. where i want that script to look the files from. Those folder names aren't logical, they could be anything.
So, i don't want to find every files but only the files that contains the line: "Game type: xxxxx". (matching number of text files would be around 150-200)
And after finding those files, I'd like to run some preg_replace one file at a time.
Thanks.