> Works fine here after correcting the obvious typos: Doh. Yeah I had -w on, just didn't have strict on. I also noticed another problem with the script as presented, but it has more to do wioth the if looping than the regex, and I've corrected that.
Thanks :) ~wren