Support regex and fns