I am not sure, is it possible to run this program in cmd? Maybe I have wrong quoting? I tried few things
1.
for /f "delims=" %a in ('dir /b *.a') do (
pcretest.exe -nle 'print $& if /(?<=title>).*(?=<\/title)/' < %a
)
2.
for /f "delims=" %a in ('dir /b *.a') do (
pcretest.exe -ln0e '$,="\n";print /(?<=<title>).*?(?=<\/title)/sg' < %a
)
3.
for /f "delims=" %a in ('dir /b *.a') do (
%a | pcretest.exe -nle 'print $& if /(?<=title>).*(?=<\/title)/'
)
but I am getting error like: > not expected here...



Help
Back to top











