I am having some issues in finding the correct regex for this task, excuse me for my beginner skills. What I am trying to do is only get the id value from a line where its "available":true not "available":false. I am able to get the ID's of all lines through re.findall('"id":(\d{13})', line, re.DOTALL) (13 is to match exactly 13 digits, as there are other ids in the code with less than 13 digits which i dont need).
{"id":1351572979731,"parent_pid":21741,"available":false,"lou":"678","feature":true,"pub":true,"require":null,"option4":""},
{"id":1351572329731,"parent_pid":21741,"available":false,"lou":"678","feature":true,"pub":true,"require":null,"option4":""},
{"id":1351572943231,"parent_pid":21741,"available":true,"lou":"678","feature":true,"pub":true,"require":null,"option4":""},
{"id":1651572973431,"parent_pid":21741,"available":true,"lou":"678","feature":true,"pub":true,"require":null,"option4":""},
Therefore end results needs to be ['1651572973431','1351572943231']
Appreciate the great help thanks

line. Islineone of these or all of these?