Command output from modem is: TxNum Band: 3 [10-30] [50-80] [100-200] RxNum Band: 3 {100-120} [120-300] [400-600] [800-1000] Others: 2000 #### Please help me in writing regular expression so that i can extract the TxBands and RxBands in the following format Txbands: [10-30] [50-80] [100-200] Rxbands:[120-300] [400-600] [800-1000]