Function try_validate
Source pub const fn try_validate(regex: &str) -> Result<(), Error>
Expand description
Tries to validate the provided regular expression with the default options.
ยงErrors
Returns an error if the provided regex is not a valid regular expression.