Re: Question about regex (nagios plugin)



Instead, you should do something like (watch for word-wrap):

if ($get_cpu_util =~ m/^\s*(?:\d+\s+){12
(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s*(\d+)?\s*$/) {


I have got it now. I appreciate your time and efforts.

Thanks.
.