Extracting info from Subject line in Gmail

Quick follow up. I was able to extract them correctly but now I want to split them. So for example, I’ve extracted 123456, 167890, 190567 and I want it to first take 123456 and enter it in our software, then take 167890 and do the same etc. What’s the best way to do that?