Prepend/append content before/after first or last match. Useful for code insertion, such as in generators