Limit a search and replace operation between lines matching 2 regex patterns using /pattern1/,/pattern2/s/search/replace/