Improved get-allnodeversions regex