Unify and rename duplicated functions (noregexp() and regexp_check()).