I'm not too good with Regex, however, I believe it's the only option I currently have so I'd highly appreciate if someone is able to help me create a Regex pattern.
Basically, I can have one OR more of the following tags:
[start:**uniqueID**:data1:data2:(..)]**###More Data**[/end:**uniqueID**]
**###More Data**
is enclosed in two tags, pre
and post
; **start**
and **end**
respectively.
The start tag has a uniqueID, which is the same in the end tag, this is used to identify the start and end of the data I wish to extract.
data1 and data2 are just placeholders, I have no way of knowing what will be written, except that the pre starts with "[start" and post starts with "[/end"
My question is, I'd like to first extract the data inside the start tag (enclosed within the [] brackets), then parse **###More Data**
(which ends at the [/end:uniqueID]
) tag.
Hopefully I explained it well, I'd appreciate any help. Thanks.