record regexp with hash