I have following input text:
Each "group" in this file I need to convert to get output (example of expected output for group0 and a part of group1):
member4 dAaxd1 group0 1
member14 dAaxd2 group0 1
member0 ck1 group1 1
member1 ck2 group1 1
...
thank you in advance
Tom.
Code:
[COLOR=#ff0000]group0[/color] heresomestring [COLOR=#ff0000]1[/color]
name dAaxd1
name alias member4
name dAaxd2
name alias member14
[COLOR=#ff0000]group1[/color] heresomestring [COLOR=#ff0000]1[/color]
name ck1
name alias member0
name ck2
name alias member1
name ck3
name alias member2
name ck4
name alias member3
[COLOR=#ff0000]group2[/color] heresomestring [COLOR=#ff0000]2[/color]
name dBaxd1
name alias member5
name dBaxd2
name alias member15
[COLOR=#ff0000]group3[/color] heresomestring [COLOR=#ff0000]2[/color]
name cl1
name alias member6
name cl2
name alias member7
name cl3
name alias member8
Each "group" in this file I need to convert to get output (example of expected output for group0 and a part of group1):
member4 dAaxd1 group0 1
member14 dAaxd2 group0 1
member0 ck1 group1 1
member1 ck2 group1 1
...
thank you in advance
Tom.