validate

Function validate 

Source
pub const fn validate(regex: &str)
Expand description

Validates the provided regular expression, panicking on errors. This is a shortcut for try_validate().unwrap().

ยงPanics

Panics if the provided regex is not a valid regular expression.