in reply to matching a multi line string with separated by diffrent delimeters
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.
|
|---|