I want to extract a string from a piece of text. This string must start end end with a certain string.
Example:
Word 1 = "Hello"
Word 2 = "World"
Text:
Hello, this is a sentence.
The whole World can read this.
What World?
The piece of text i want to extract is:
Hello, this is a sentence.
The whole World
What kind of regular exception should i use for extraction of the string.
Note: the string 'World' occurs twice.
Thanks