Search/replace using pre-defined patterns