See: Multi-Pattern Search, Replacement, Rules