Function proptest::string::string_regex [] [src]

pub fn string_regex(regex: &str) -> Result<BoxedStrategy<String>, Error>

Creates a strategy which generates strings matching the given regular expression.

If you don't need error handling and aren't limited by setup time, it is also possible to directly use a &str as a strategy with the same effect.