Vb.net разделение строк по шаблону с группой из нескольких строк
I am working on data collection from a simple text file as shown below:
* GROUP No.1 * Result: PASS Remark: Example No.: 11 * GROUP No.2 * Result: PASS Remark: Example No.: 12 * GROUP No.3 * Result: PASS Remark: Example No.: 13 * GROUP No.4 * Result: PASS Remark: Example No.: 14 * GROUP No.5 * Result: FAIL Remark: Example No.:27 Subject PaperId Point 001260 001 30 001261 002 20 001262 003 10 * GROUP No.6 * Result: FAIL Remark: Example No.:16
I want to read the data group by the * GROUP No.X * into the array. Only if the result is FAIL there will have extra information. how can I do it in VB.net?
я пытался, когда размещал коды, но реалт сошел с ума
Что я уже пробовал:
Dim arrayCut As String() = NoNLText.Split("* GROUP ") For Each p As String In arrayCut txtSplittedText.Text = p MsgBox("Result") Next