What have you tried? What didn't work? See How do I post a question effectively?. The challenge here is not what you want to match but what you don't. Given just the sample code, you could get your requested result with: /^(ERROR.+?)^.+^(.+?)^.+^(.+?$)/ms;, but I sincerely doubt that's actually helpful. A readthrough of perlretut might be helpful.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: matching a multi line string with separated by diffrent delimeters
by kennethk
in thread matching a multi line string with separated by diffrent delimeters
by babp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |