I have the following logfile structure:
In order not to bother with \( and \) in the following I use X instead just for readability.
It's easy to define the multiline format with Start-Expression /Begin/ and End-Expression /End/
But I coulnt it figure out, how to capture the content within the ( ), which should be variable1 and variable2.
Something like /abcX(.*)Xdef\nghiX(.*)X/ doesnt work. Also no success with the / /s modifier.
The problem is that sometimes there may be three lines between Begin and End and the second capture might be on
the third line.
Everything works fine as long as I search only for one capture, e.g Y(.*)Y . This matches regardless of the linenumber..
But I couldnt it get working matching two captures (resulting in two variables) on different lines.
Any ideas or (much appreciated) examples ?