Regex to the Rescue

Just had to update a site of more than three hundred static pages. I’ve done it once before using FTP and some simple find/replace dialogs, and it took me hours and hours. This change was significantly more complex than the last global one I had to make, but instead of even attempting it the old way, I decided to write a smart Perl script to apply the changes to all the files. The whole thing took about 20 minutes, saving me mind-numbing hours of work and the client hundreds of dollars. It’s the first time I’ve used Perl for much beyond the simplest things, and I must say it’s pretty handy. Pretty darn handy indeed.

SHARE YOUR THOUGHTS