I have a block of data, which essentially consist of pipe-seperated fixed messages (back to back).
I am using python, and the only way I can think of, is to find the index of the 8=FIX.4.2
tag (denoting the start of a message), work my way back to the end of the previous message, and determine the message that way.
I was wondering if this could be achieved any other way (regex for example). I am not sure how to apply the the grouping construct in regex here.
As an example of the data I am looking at:
8=FIX.4.2|9=122|35=D|49=hello|56=def|34=2|52=19700116-14:18:06.790|11=000007|55=DUMMY|54=#|38=1000|40=1|44=77|60=19700116-14:18:06.790|59=0|10=148|8=FIX.4.2|9=122|35=D|49=hello|56=def|34=2|52=19700116-14:18:06.790|11=000007|55=DUMMY54=#|38=1000|40=1|44=77|60=19700116-14:18:06.790|59=0|10=148|