There is a text:
Bla-Bla ERROR An error occurred while attempting to deploy the job There is a regular expression:
^ERROR(.+) In the program, as well as on the site regexr.com, the last line is not taken! But as soon as you remove the start line character in a regular expression, ^ - then everything works. Why? In the text there is a line break (10th ASCII character). Checked here .