I have a file consisting of about 2,000 lines of code, and will over the next year end up with multiple more ranging from 2,000-10,000 lines that all look something like this:
intervals [20]:
xmin = 30.92253933399418
xmax = 31.02761699883159
text = "[d\zh]"
intervals [21]:
xmin = 31.02761699883159
xmax = 36.65640141106862
text = ""
intervals [22]:
xmin = 36.65640141106862
xmax = 36.685050880990964
text = "[d]"
intervals [23]:
xmin = 36.685050880990964
xmax = 37.521796787386464
text = ""
What I’m wanting to do but can’t figure out is i need the xmin and xmax numbers only from intervals where the text contains content (In this instance i would not want the xmin or xmax from intervals [21] or [23]), to be put into 2 columns in an excel sheet.
In case my end goal is easier to achieve than I am making it out to be, I am ultimately wanting the difference between the xmin and xmax of each interval with a content-full text section.
Does anyone have any ideas how to do this?