diff --git a/dev-bin/release.sh b/dev-bin/release.sh
index 3c5df49..86c72ed 100755
--- a/dev-bin/release.sh
+++ b/dev-bin/release.sh
@@ -32,7 +32,8 @@ rm -fr vendor
perl -pi -e "s/(?<=#define PHP_MAXMINDDB_VERSION \")\d+\.\d+\.\d+(?=\")/$version/" ext/php_maxminddb.h
perl -pi -e "s/(?<=\"ext-maxminddb\": \"<)\d+.\d+.\d+(?=,)/$version/" composer.json
-perl -pi -e "s/(?<=<(?:api|release)>)\d+\.\d+\.\d+(?=<)/$version/" package.xml
+perl -pi -e "s/(?<=<(?:api)>)\d+\.\d+\.\d+(?=<)/$version/" package.xml
+perl -pi -e "s/(?<=<(?:release)>)\d+\.\d+\.\d+(?=<)/$version/" package.xml
perl -0777 -pi -e "s{(?<=).*(?=)}{$notes}sm" package.xml
perl -pi -e "s/(?<=)\d{4}-\d{2}-\d{2}(?=<)/$date/" package.xml