I have a version string, for example
version=1.2.23b2
I want to have only the last part with the b2
, so I tried this:
${version##*[0-9]*.[0-9]*.[0-9]*}
My thought was that *
would mean no or many repetitions of the leading pattern, but in fact it means any character no or many times. So I want my pattern to express, that this is only about digits, one ore more times.