I'm trying to scan an Amazon S3
bucket, in order to search if a new version of our installer has been posted:
The bucket scan returns me something like:
versions/
versions/4.4.1.2/
versions/4.4.1.2/Installer.sh
versions/4.4.2.11/
versions/4.4.2.11/Installer.sh
versions/4.5.0.10a/
versions/4.5.0.10a/Installer.sh
versions/4.5.0.12a/
versions/4.5.0.12a/Installer.sh
I only need to get the <{d}.{d}.{d}.{d}{a-z]}>
part between versions
... how do I parse that using regex in Python?
line.split('/')[1]
?