detect regexec