You can try also parameter substitution in two passes:
Code:
version=13q.00.00.00
release=${version%%.*}
release=${release//[[:alpha:]]}
echo $release
The first substitution strips out the part of the string starting with a dot (.00.00.00), the second substitution removes all the alphabet characters.