Matching sentence between two strings
Posted: Thu Aug 28, 2008 5:00 am
Hi,
I am trying to create a regex that will match a sentence between two specific strings.
below is the sentence to match, the part I would like to match is marked in bold.
[[Text:hi this is a nice sentence[[very nice]] I like this text]] this is not related [[not]]
I have the following regex: \[\[Text:.*?]]
The problem is that it stops at the ]] after "very nice" and matches only: [[Text:hi this is a nice sentence[[very nice]]
Thanks anyone for any help.
Light Interactive.
I am trying to create a regex that will match a sentence between two specific strings.
below is the sentence to match, the part I would like to match is marked in bold.
[[Text:hi this is a nice sentence[[very nice]] I like this text]] this is not related [[not]]
I have the following regex: \[\[Text:.*?]]
The problem is that it stops at the ]] after "very nice" and matches only: [[Text:hi this is a nice sentence[[very nice]]
Thanks anyone for any help.
Light Interactive.