0

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.

FirstOne
  • 5,165
  • 5
  • 24
  • 44
Jose G
  • 3
  • 2

0 Answers0