Description:I need a method that will return list of strings which comes between two keywords,
For example:
If I have given following string to the method.
"<SomeString> This is first string </SomeString><SomeString> This is Second string </SomeString>"
The method should return a list of two strings as follows.(Note: these strings can be multi-lines)
"This is first string"
"This is Second string"
Thanks for your help in advance
Posted by: Jhon Anthony | Posted on: Oct 10, 2017
2
You can use following method to extract these strings in the form of a List of strings.
And you call this method in the following way to get your desired result.
Replied by: Tabish Usman | Replied on: Oct 23, 2017