Skip to main content

get_regex

Function get_regex 

Source
pub fn get_regex(pattern: &str) -> Result<Arc<Regex>, Error>
Expand description

Get or compile a regex using the global cache.

ยงErrors

Returns an error if the pattern is invalid.