in reply to Re: regexp look behind?
in thread regexp look behind?

thanks but no cigar! I would like the output to be
cache,23778,0.0,0,0.0,0,0.0,0.0,0.00 cache,205,0.0,0,0.0,0,0.0,0.0,0.00 "newline here" DISK-UTIL-PEAK-HIGH:,54.3,DISK-UTIL:,2.5 "newline here" PROC-Name,PID,PYS-IO-RATE,READs,READ-RATE,WRITEs cache,26094,0.9,1,0.9,0,0.0,0.0,0.00 cache,16046,0.0,0,0.0,0,0.0,0.0,0.00 cache,3848,0.0,0,0.0,0,0.0,0.0,0.00 cache,23778,0.0,0,0.0,0,0.0,0.0,0.00 cache,205,0.0,0,0.0,0,0.0,0.0,0.00 "newline here" DISK-UTIL-PEAK-HIGH:,54.3,DISK-UTIL:,3 ### last line ###

Replies are listed 'Best First'.
Re^3: regexp look behind?
by AnomalousMonk (Archbishop) on Dec 01, 2010 at 01:25 UTC

    No, thank you for finally clarifying just what you want the output to be!

      Yes, thanks for clarifying the output. that was something I could not parse from the discription given in the original problem.

      So take my original suggestion and instead of the if statement looking like I suggested make the print portion be  print "\n$_\n\n" if (same as code given).