Documentation
¶
Index ¶
- func Compile(pattern string) (*regexp2.Regexp, error)
- func CompileFullmatch(pattern string) (*regexp2.Regexp, error)
- func CompileIgnoreCase(pattern string) (*regexp2.Regexp, error)
- func GroupIndex(pattern string) (map[string]int, error)
- func MustCompile(pattern string) *regexp2.Regexp
- func Translate(pattern string) (string, error)
- type Error
- type OverflowError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileFullmatch ¶
Compiles a Python re pattern whose MatchString answers re.fullmatch over the whole subject
func CompileIgnoreCase ¶
Compiles a Python re pattern under re.IGNORECASE with Python matching semantics
func GroupIndex ¶
Python groupindex of a pattern, each group name mapped to its group number in the translation
func MustCompile ¶
Compiled pattern with Python semantics, panicking on a pattern Python rejects
Types ¶
type OverflowError ¶
type OverflowError struct{ Msg string }
OverflowError is the OverflowError re.compile raises for a repeat count at or above MAXREPEAT
func (*OverflowError) Error ¶
func (e *OverflowError) Error() string