This question is a little confusing. I want to match everything in between the things I am searching for including the string I am using to search. For example, I have this list:
- This is a sentence
- This is a fake
- This can be a sentence
I want it to match the entire line. For this case I want it to match This and sentence, so it returns This is a sentence and This can be a sentence. I have tried something like this: Regex Match all characters between two strings. That does not work because it does not take the original keywords. It would only take the matched string BETWEEN the keywords.
How can this be accomplished?
Thanks!