Example text:
This is my car, I don't like it, because it is slow. This is my car, SomeRandom24324<>, it is slow. This is my car, how about you and me..., because it is slow.
I want to remove everything in between "This is" and "is slow".
I tried (?<=This is)(.*?)(?=is slow), but it only removes first occurrence and I get:
This isis slow. This is my car, SomeRandom24324<>, it is slow. This is my car, how about you and me..., because it is slow.
Rest of occurrences are still there.
As you understand I want to have only:
This isis slow. This isis slow. This isis slow.
PS: Any good book to learn regex?
s/(?<=This is)(.*?)(?=is slow)//gshould do it