Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

extract single element from a list and insert it into another list

$
0
0

I have a list formed like this

['s3://dx-datalake-modl-svil-3075-bucket-layer/DX/WDOS/VV_SALDI_TITOLO/c_acr=GE/c_giorno_t=20201231/', 's3://dx-datalake-modl-svil-3075-bucket-layer/DX/WDOS/VV_SALDI_TITOLO/c_acr=GE/c_giorno_t=20230531/']

and I should extract from it only the digits 20230531 and 20201231. I should put these in another list. How can I do?

I should get['20230531','20201231']


Viewing all articles
Browse latest Browse all 13981

Trending Articles