makeRegExp now takes a regex instead of strings
build