Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Regex using ^

Aug
151
0
Trying to figure out why I'm not hitting INCLUDE below. If I remove the ^, it works. But I want to make sure the line starts with /TestLine. The Regex analyzer indicates a match.

@echo off
setlocal
set xdata=/TestLine this is a test line
iff %@regex[^/TestLine, %xdata] == 1 then
echo INCLUDE -- %xdata
else
echo EXCLUDE -- %xdata
endiff
endlocal
 

Similar threads

Back
Top