how about if the format of the string is like this?
then the value is like this.
"Current Results Stats for LUID: 18 Test Duration: 2 Pkt Length: 1522
Downlink Rate: 4739072 bps (4.74 Mbps)
Uplink Rate: 1285120 bps (1.29 Mbps)
Aggregate Rate: 6024192 bps (6.02 Mbps, 493 pps)
Pkt Xmt (Act/Exp): 778/0 (389 pps)
Pkt Rcv (Act/Exp): 209/0 (104 pps)
Downlink Efficiency: 100 Percent
Downlink Index (Act/Max): 100/100
Frag Count (Act/Exp): 18512/18512
Uplink Efficiency: 100 Percent
Uplink Index (Act/Max): 100/100
Frag Count (Act/Exp): 5020/5020
VC 34 Rate 1X/1X "
I wanted to extract the value "100 Percent" after the word "Downlink Efficiency" and "Uplink Efficiency", I used the code in this format
I added 11 in last part since "100 Percent" is 11 of length and the result is this "Downlink Ef", how should I revise the code so that instead of "Downlink Ef", I could extract the word "100 Percent"?
Bookmarks