Regex using ^

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Aug 19, 2008
146
0
#1
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