in reply to Re^2: Match a string only once in a file
in thread Match a string only once in a file

Really cool idea - very instructional - thanks!