Versions in this module Expand all Collapse all v1 v1.0.0 Mar 6, 2026 Changes in this version + const CompileTimeout + const MaxNestedQuantifiers + const MaxPatternLength + const MaxRepetitionCount + func MustSafeCompile(pattern string) *regexp.Regexp + func SafeCompile(pattern string) (*regexp.Regexp, error) + func SafeCompileWithFlags(pattern string, flags string) (*regexp.Regexp, error) + func ValidatePattern(pattern string) error + type ValidationError struct + Pattern string + Reason string + func (e *ValidationError) Error() string