Use tap similar function for checking against regexp.