Extend the stable tag search method.

Make it so that the stable regexp matches the tag and the group
specifies the version portion.
Merge pull request #1684 from milkypostman/batsov-deluxe

Extend the stable tag search method.