This question is similar to: regex - replace ordered list of lines matching a string with another list. If you believe it’s different, please [edit] the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.
↧