Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 158 Bytes

File metadata and controls

7 lines (6 loc) · 158 Bytes

Usage

use repr::{Repr, constants::DIGIT};
let re = DIGIT.rep(4) * '-' * DIGIT.rep(2) * '-' * DIGIT.rep(2);
assert!(re.is_match("2014-01-01"));