How do you match a repeating group within a repeating group?
For example getting all valid records in a log file:
---:
TS : 150602000006S
EC1: 02429.523
EC2: 05604.110
---
---:
TS : 150603000006S
---:
TS : 150603000006S
EP1: 3333.523
---
Like the following matches:
[
[
['TS ', '150602000006S'],
['EC1', '02429.523'],
['EC2', '05604.110']
],
[
['TS', '150603000006S'],
['EP1', '3333.523']
]
]
Retrieving the individual record properties can be done with(See on regex101):
([A-Z0-9 ]{3,3}): ([0-9SW]+ )?([0-9\.SW]{3,})\n
However, when placing regex in a record group(like seen here), property groups stop matching in a repeating fashion.
How is this properly done?