hi
I have a text file which I need to parse in order to retrieve data .
I’m using java eclipse .
this a sample text breively
system:vrrp
Group DATA
ST NO PL
BT-0 FXX 10
FXX 11
FXX 12
BT-100 FXY 10
FXY 11
FXY 12
BT-200 FXZ 10
FXZ 11
BT-300 FXZ 12
Stop
I 'm using bellow regx code which is working on first BT-0.
get st=BT-0>=FXX&PL=10
get st=BT-0>=FXX&PL=11
get st=BT-0>=FXX&PL=12
for the remaining BT-100 & BT-200 & BT-300 nothing is dispalyed but I want to get this at once
get st=BT-100>=FXY&PL=10
get st=BT-100>=FXY&PL=11
get st=BT-100>=FXY&PL=12
get st=BT-200>=FXZ&PL=10
get st=BT-200>=FXZ&PL=11
get st=BT-300>=FXZ&PL=12
?<BT>BT-\d{1,3})\s+(?<NO>[$\w]+)\s+(?<PL>\d+)+.* +\r?\n\s+(?<NO1>[$\w]+)\s+(?<PL1>\d+)+.* +\r?\n\s+(?<NO2>[$\w]+)\s+(?<PL2>\d+)
how to do that ?