in reply to pp filter regex

What's wrong is that there is no error message or output. Unless there was one and you forgot to tell us ;-).

On Windows strings are delimited by " rather than '. It does output an error when I try this: echo '^(GUI_|AA_|myMainScript)'
'AA_' is not recognized as an internal or external command, operable program or batch file.

Replies are listed 'Best First'.
Re^2: pp filter regex
by Anonymous Monk on Jun 22, 2018 at 14:25 UTC

    Sorry for forgetting the error message. Both using ' and " does output an error saying that the command myMainScript (in the regex) is written wrongly. On a Unix system the same works perfectly, but I am not quite sure how to write my Regex in the command line on a Windows machine...

      On a Unix system the same works perfectly, but I am not quite sure how to write my Regex in the command line on a Windows machine...

      Avoid the commandline, write a program.

      #!/usr/bin/perl -- use strict; use warnings; system 'pp.bat', ...;

      pp.bat ain't nothing but use pp; pp->go;