I am trying to search for a match inside a text that contains the words:
[IF (anytext) [OF] (anytext).... endofline
in a given text, I have tried this pattern without luck:
^(\[IF(.*?)\[OF\]).*$
It works if the text is only one line, but when I feed in a full text with several lines it doesnt works.