in reply to Re^6: regex subst not DWIM
in thread regex subst not DWIM

Rather than doing the complex regex at the end, I would check for it in the read loop, myself...

Maybe have a has_header flag that you increment if you see a //\s*

line and unset it once you match the method, and skip to the next line.

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