I need to find some string in text after keyword in inside brackets first occurrence. This is the text example:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. === FIRST KEYWORD === veniam, {{ text need to get }} ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit {{in voluptate velit esse cillum}} dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia {{deserunt mollit anim }}id est laborum
So I need get text inside the brackets after first keyword.
I tried many combination but the best was that I received the text from last brackets not first. With this exp I got text after keywords (?<==== FIRST KEYWORD ===).(.|\n)*
But with finding first text in brackets I didn't succeed.
UPD: Thank you all, but answer from Bohemian not work for my corpus.
This answer :
"(?<==== FIRST KEYWORD ===)[^{]*\\{\\{([^}]*)\\}\\}"
works, but I don't see it now. So I cannot say thanks to that guy who wrote this, I don't remember.