Regular expression help parsing SQLIO output
Posted
by jaspernygaard
on Stack Overflow
See other posts from Stack Overflow
or by jaspernygaard
Published on 2010-03-18T15:05:39Z
Indexed on
2010/03/18
16:31 UTC
Read the original article
Hit count: 241
regex
Hi
I've been working on a regular expression to parse the output of a series of SQLIO runs. I've gotten pretty far, but not quite there yet. I'm seeking a 100% regex solution and no pre-manipulation of the input. Could anyone assist with a little guidance with the following regular expression:
.*v(?<SQLIOVersion>\d\.\d).*\n.*\n(?<threads>\d*)\s.*for\s(?<Seconds>\d+).*\n.*using\s(?<clustersize>[0-9]*)KB.*\n.*\n.*size:\s(?<currentfilesize>\d+).*\n.*\n.*\n.*\n.*\s(?<IOs>\d*\.\d*).*\n.*\s(?<MBs>\d*\.\d*).*\n.*\n.*\s(?<MinLatency_ms>\d+).*\n.*\s(?<AvgLatency_ms>\d+).*\n.*\s(?<MaxLatency_ms>\d+).*\n.*\n.*\n\%\:..(?<ms>\d*\s+)*
Here's a snippet of the output - note the headers, which change during the SQLIO batch run: File
© Stack Overflow or respective owner