0

Simple question I got string that looks like :

"This is first sentence, This is bad s3ntence,  This is second sentence, This is third sentence"

and I want to get all results that starts from "This is" and ends "sentence" without extra matches

I tried This is.*?sentence but it gets me extra match "this is bad s3ntence, This is second sentence", any way to get only what I need without extra match?

Thanks!

Álvaro González
  • 142,137
  • 41
  • 261
  • 360

0 Answers0