in reply to simple regex question (parsing and saving a file)

I would like to point out a couple regexp things...

a) you are using capturing parenthesis without caring about what they capture... (i.e. you are not looking at $1 $2 etc...) in which case (?: ) is better to use, since it does not perform capturing.

b) since you are not looking at what is in $1... the following /^(.*)Passed:/ is very inefficient. The following /Passed:/ is really all you need, and not capturing the .* will actually improve the efficiency. This will have the same effect, it will match a line with Passed: anywhere in it.

                - Ant
                - Some of my best work - (1 2 3)