Heh, a scripting contest
PHX, what I posted works... consistently for me anyway. I can't think of a reason why it doesn't work for you. I played with this a good bit, hoping I could post a 6 line script that would do the same thing <grin> but it proves to be tougher than that. The only fool-proof way I came up was long... like Tweety's.
I like the way you guys concatenate all of the lines into one. This can present some problems though... like if Photons are disabled they'll be absent from the quickstats, throwing your numbering off. Also, the last line may not have #179 in it, so you have to allow for that. I'm sure there are others scenarios as well.
And the reason CK doesn't just use "(?=help)" is because it is sometimes "(?=Help)", like at the command prompt. Notice the uppercase "H".
Ah well, I'm sure it can be done in 10 lines
+EP+