generalize regexp for functions to skip