Hello all,
For all you regex gurus out there. I have the following text file:
I need to get "send packet rate" as $1 and the number after the ":" as $2. as in:
$1 = send packet rate
$2 = 1.17
I do not need the send bit rate or received bit rate.
Tried many iterations. Here is where I am and it seems it should work:
Any help is appriciated.
Nick
If at first you don't succeed, don't try skydiving.
For all you regex gurus out there. I have the following text file:
Code:
send packet rate : 1.17 send bit rate : 1396.57
recv packet rate : 1.85 recv bit rate : 3204.79
I need to get "send packet rate" as $1 and the number after the ":" as $2. as in:
$1 = send packet rate
$2 = 1.17
I do not need the send bit rate or received bit rate.
Tried many iterations. Here is where I am and it seems it should work:
Code:
/^(.*?)\:([0-9]*\.[0-9]*)/;
$hash{$1} = $2;
Any help is appriciated.
Nick
If at first you don't succeed, don't try skydiving.