Hi guys, I have looked at PHP's extensive REGEX functions but I am stuck trying to find the best way to break down a large string into a predictable array regardless of the length of each part of the string.
I need to parse the following with PHP:
ath0 IEEE 802.11g ESSID:"Testing"
Mode:Managed Frequency:2.45 GHz Access Point: 00:10:2Z:CF:21:09
Bit Rate:27 Mb/s Tx-Power=23 dBm Sensitivity=1/3
Retry:off RTS thr=768 B Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=18/94 Signal level=-77 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
What I need is to be able to accurately get the signal level (-77) the noise level (-95) and Access Point (00:10:2Z:CF:21:09).
If anyone can help me, I would be very appreciative.
Thanks, Stuart