I have a variable
set a "--------------------------------------------------------------------------------
Proto Source Address Pkt-Cnt Start
Destination Address Byte-Cnt
--------------------------------------------------------------------------------
UDP 150.1.1.2 25 05/24/2021 07:07:29
150.2.1.2 1150
--------------------------------------------------------------------------------"
i need to match all the values after the word UDP. i tried this one to match the first line and it works good. But i could not get the values "150.2.1.2" and "1150" - Any help is much appreciated
regexp "UDP + (\[\[:graph:]]+) + (\[\[:graph:]]+) + (\[\[:graph:]]+) +(\[\[:graph:]]+)" $a match data1 data2 data3 data4