- or download this
/my background error (\d+):(?!.+my3\.exe)/
- or download this
$ perl -Mstrict -Mwarnings -E 'while (<>) { if (/my background error (
+\d+):(?!.+my3\.exe)/ ) { say $1 } }'
blah blah my background error 1234: blah blah
...
blah blah my background error 1234:my3.exe
1234
^C
- or download this
/my background error (\d+): ((?!.*my3\.exe).+)/
- or download this
$ perl -Mstrict -Mwarnings -E 'while (<>) { if (/my background error (
+\d+): ((?!.*my3\.exe).+)/ ) { say qq{$1 = \"$2\"} } else { say q{NO M
+ATCH} } }'
blah blah my background error 1234: blah blah
...
blah blah my background error 1234: my4.exe
1234 = "my4.exe"
^C