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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…