I am looking for a javascript regex for deleting all lines between two words including the words. I could find something like this
Dim input = "one two three four START four five four five six END seven"
Dim output = Regex.Replace(input, "(?<=START.*)four(?=.*END)", "test")
This is for VB and in addition, it does not work for multiple lines and also delete both start and end.
How do I solve this problem?