in reply to Re^2: Replacing between patterns
in thread Replacing between patterns

The old version is being supported on new versions as well?

Yes, it is. Here's another backwards-compatible alternative: s/ABC(?s:.*?)XYZ.*/[DATA]/