title: Regex: How to insert text before the first line and after the last line of file
body: <p>I needed to add a php script on the beginning of 2000 files. So, I find the solution, maybe this will help anyone to do this with regex.</p>