Regex capture with BASH_REMATCH bash

Native regex match extracts groups; note: don't quote the right-hand regex

[[ $s =~ ^([0-9]+)\.([0-9]+) ]] && echo "${BASH_REMATCH[1]}/${BASH_REMATCH[2]}"