Batch/cmd does not support regexes directly. You have to use findstr
for that, for example:
echo %node% | findstr /r "[vV][0-9.]*" >nul 2>&1 && (echo contains) || (echo does not contain)
or
echo %node% | findstr /r "[vV][0-9.]*" >nul 2>&1
if errorlevel 1 (echo does not contain) else (echo contains)
This trick delegates comparison to findstr
and than uses return code (errorlevel) from it.
(please note that regexes findstr
supports are also quite limited and has some quirks, more info http://ss64.com/nt/findstr.html)