func regex block