introduce regexFunction