I’ve got some troubles deleting data from an array.
I’m reading PDFs line by line and I have several info in one line like for example:
COD365 16/03/2020 Hanna 08/04/2020 2 6 IT 368 6 12345678
i’m taking some parts with splits, some parts with matches and while im taing info i’m erasing from the line de info that i’ve take with a replace like -> line.replace(value,"")
when I get the “6” number is obviously taking all the “6” in the line so it’s making a mess:
COD365 16/03/2020 Hanna 08/04/2020 2 6
I want to know if there is a way to extract .last froman array. Extract, put it out of the array.
Let me know if you find something.