diff --git a/bob/devtools/release.py b/bob/devtools/release.py
index 707c144c96467e06b22aff281e9c12e7f3f37460..9682ca966b85e5fa630acd6971440e06b4933a0e 100644
--- a/bob/devtools/release.py
+++ b/bob/devtools/release.py
@@ -158,7 +158,7 @@ def get_parsed_tag(gitpkg, tag):
     The latest tag is either patch, minor, major, or none
     """
 
-    m = re.search(r"(v\d+.\d+.\d+)", tag)
+    m = re.search(r"(v\d+\.\d+\.\d+)", tag)
     if m:
         return m.group(0)
     # tag = Version(tag)
@@ -190,7 +190,7 @@ def get_parsed_tag(gitpkg, tag):
 
         # check that it has expected format #.#.#
         # latest_tag_name = Version(latest_tag_name)
-        m = re.match(r"(\d.\d.\d)", latest_tag_name)
+        m = re.match(r"(\d+\.\d+\.\d+)", latest_tag_name)
         if not m:
             raise ValueError(
                 "The latest tag name {0} in package {1} has "