 vars, fixed = TRUE)]\n})\n\n# Define a function that expect the first parameter to be column names, second to be matches.\nnot_contains &lt;- function(vars, match){\n    vars[-grep(match, vars, fixed = TRUE)]\n}\ndata %&gt;% select(not_contains("avoid"))\n```\n\nLess ideally, allow custom functions to be registered as [part of `select_funs`](https://github.com/hadley/dplyr/blob/master/R/select-vars.R#L67), e.g. something like:\n\n``` r\nnot_contains &lt;- function(vars, match){\n    vars[-grep(match, vars,