check regexp if present.