#!/bin/bash
grep -oP '.*2\.\K\d+(?=\.0\b)' <<< "https://e...content-available-to-author-only...e.com/repository/local/foo-bar/2.15290.0/foo_bar-2.15290.0.tar.gz"