Given the following string
- 38051211)JLRx(0x04>0x01):JL_PAGE_INFO(0x63,0x00,0x01,0x03,0x00,0x73,0x00,0x00,0x0A,0x01,0x01,0xF2,0x01)
How can I split it so I can use each split in a listview column?
I can use split at the : for example but then I need to split at the next ( and each value after split using the ,.
Any advice would be greatly appreciated, its how I add the 2nd and 3rd and so on parts I am struggling with
- {
- if (line.Contains("JLTx"))
- {
- string[] JLTx = line.Split(new[] { ':' }, StringSplitOptions.RemoveEmptyEntries);
- listView1.Items.Add(JLTx[0]);
- listView1.Items[listView1.Items.Count - 1].SubItems.Add(JLTx[1]);
- }