As pointed out by Zedfoxus here. A very clean method that works on all Unix-based systems. Besides, you don't need to know the exact position of the substring.
A="Some variable has value abc.123"
echo $A"$A" | rev | cut -d ' ' -f 1 | rev
# abc.123