Hi all,
I'm trying to make a pattern matching but I have 2 difficulties :
1. My search can have 1 or more lines,
Example1 :
Label: line1
or
Example2 :
Label: line1
line2
2. My End can be different
Example1 :
Label: line1
End1
or
Example2 :
Label: line1
End2
I tried this (and it's working)
(?s)Title.*?Label:\s?\r?\n?(.*)End1 | (?s)Title.*?Label:\s?\r?\n?(.*)End2
But my Title, Label and End are so long (more than 512 caracteres). I want to reduce the pattern.
Is it possible to have something like that ?
(?s)Title.*?Label:\s?\r?\n?(.*) End1|End2
Thanks in advance.
Regards