I am working with regex and I\'m recieving an iterator with only one object in it. In the following example To simplify I just represent it with a variable var being a list