I am trying to read an input which might have some information that I do not need for my program and for example I need only the part in brackets, how can I omit/eliminate that unneeded part? Just a simple example would be:
S={[2,5],[3,4],[5,6]}
So how can I omit everything and only take from the input [2,5] [3,4] and [5,6]?
Thank you!