andry81post_id=471966 wrote:2025-05-22, 03:24 UTC
Still does not work.
Is that the MultiLine does match each line before the CR/LR? Then the "\r?\n" nor "{3,0}" has no sense here.
The expression only match file where moe than 3 lines start with REM.
?m indicate that the expression can be matched by more than one line
{3,} means more than 3 line
Give a try with
Code: Select all
REM ---------------------------------------------
REM sample.bat for PCREsearch.wdx
REM ---------------------------------------------
echo sample.bat
If you have space before rem, you should add \s* before rem.
you should have a definition in pcresearch.ini like
(adapt the 4 number by your first emply slot)
Code: Select all
;;;;; More then 3 consecutive REM lines
regex4=(?im)(\s*rem[^\r\n]+\r?\n){3,}
regex4name=Multi REM
regex4type=0
regex4flags=0
When you search set *.bat *.cmd as file name,
On plugin tab, select [pcresearch] . [Multi REM] [=] Yes
--- Edited --
I use version 2.5.0.0
wdx64 MD5,1eae46ee36f7daa4f60daf6c8e2636fb
see config:
Image:
https://postimg.cc/2L77JVSX