Let's say I have the following string:
this is a test for the sake of testing. this is only a test. The end.
and I want to select this is a test
and this is only a test
. What in the world do I need to do?
The following Regex I tried yields a goofy result:
this(.*)test
(I also wanted to capture what was between it)
returns this is a test for the sake of testing. this is only a test
It seems like this is probably something easy I'm forgetting.