Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

regex in batch file

@echo off
set myvar= 192.168.1.1
echo %myvar% | findstr /i /r [A-za-z]
if %errorlevel% == 1 echo true
pause
 
PREVIOUS NEXT
Tagged: #regex #batch #file
ADD COMMENT
Topic
Name
5+5 =