pub fn validate_portable_pattern(pattern: &str) -> Result<()>Expand description
Checks that a pattern is an I-Regexp (RFC 9485) without \p{…}/\P{…}
and without . outside a character class, optionally anchored with a
leading ^ and a trailing $ (Section 12.3.1).