Remove or replace fragments

Replace the specified fragment in each row or delete it entirely.