Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: regexp look behind?

by dbs (Sexton)
on Nov 30, 2010 at 19:24 UTC ( #874547=note: print w/replies, xml ) Need Help??

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 (Bishop) 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).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://874547]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-04-23 10:42 GMT
Find Nodes?
    Voting Booth?

    No recent polls found