regexFunction not initialised