In programming, to derive one set of characters from another by using a mask (pattern) that determines which characters to remove.