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

pub fn string_regex(
    regex: &str
) -> Result<RegexGeneratorStrategy<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.