if (/^test\d(?:$|.*[^~]$)/){