Versions in this module Expand all Collapse all v1 v1.0.0 Jan 27, 2024 Changes in this version + const ANCHORED + const BSR_ANYCRLF + const BSR_UNICODE + const CASELESS + const DOLLAR_ENDONLY + const DOTALL + const DUPNAMES + const ERROR_BADCOUNT + const ERROR_BADMAGIC + const ERROR_BADOPTION + const ERROR_BADPARTIAL + const ERROR_BADUTF8 + const ERROR_BADUTF8_OFFSET + const ERROR_CALLOUT + const ERROR_INTERNAL + const ERROR_JIT_STACKLIMIT + const ERROR_MATCHLIMIT + const ERROR_NOMATCH + const ERROR_NOMEMORY + const ERROR_NOSUBSTRING + const ERROR_NULL + const ERROR_PARTIAL + const ERROR_RECURSIONLIMIT + const ERROR_UNKNOWN_OPCODE + const EXTENDED + const EXTRA + const FIRSTLINE + const JAVASCRIPT_COMPAT + const MULTILINE + const NEVER_UTF + const NEWLINE_ANY + const NEWLINE_ANYCRLF + const NEWLINE_CR + const NEWLINE_CRLF + const NEWLINE_LF + const NOTBOL + const NOTEMPTY + const NOTEMPTY_ATSTART + const NOTEOL + const NO_AUTO_CAPTURE + const NO_START_OPTIMIZE + const NO_UTF8_CHECK + const PARTIAL_HARD + const PARTIAL_SOFT + const STUDY_JIT_COMPILE + const STUDY_JIT_PARTIAL_HARD_COMPILE + const STUDY_JIT_PARTIAL_SOFT_COMPILE + const UCP + const UNGREEDY + const UTF8 + type CompileError struct + Message string + Offset int + Pattern string + func (e *CompileError) Error() string + type Matcher struct + func (m *Matcher) Exec(subject []byte, flags int) int + func (m *Matcher) ExecString(subject string, flags int) int + func (m *Matcher) Extract() [][]byte + func (m *Matcher) ExtractString() []string + func (m *Matcher) Group(group int) []byte + func (m *Matcher) GroupIndices(group int) []int + func (m *Matcher) GroupString(group int) string + func (m *Matcher) Groups() int + func (m *Matcher) Index() (loc []int) + func (m *Matcher) Init(re *Regexp) + func (m *Matcher) Match(subject []byte, flags int) (bool, error) + func (m *Matcher) MatchString(subject string, flags int) (bool, error) + func (m *Matcher) Matches() bool + func (m *Matcher) Named(group string) ([]byte, error) + func (m *Matcher) NamedPresent(group string) (bool, error) + func (m *Matcher) NamedString(group string) (string, error) + func (m *Matcher) Partial() bool + func (m *Matcher) Present(group int) bool + func (m *Matcher) Reset(re *Regexp, subject []byte, flags int) (bool, error) + func (m *Matcher) ResetString(re *Regexp, subject string, flags int) (bool, error) + type Regexp struct + func Compile(pattern string, flags int) (Regexp, error) + func CompileJIT(pattern string, comFlags, jitFlags int) (Regexp, error) + func MustCompile(pattern string, flags int) *Regexp + func MustCompileJIT(pattern string, comFlags, jitFlags int) (re Regexp) + func (re *Regexp) FindIndex(bytes []byte, flags int) ([]int, error) + func (re *Regexp) Groups() int + func (re *Regexp) Matcher(subject []byte, flags int) (*Matcher, error) + func (re *Regexp) MatcherString(subject string, flags int) (*Matcher, error) + func (re *Regexp) NewMatcher() *Matcher + func (re *Regexp) ReplaceAll(bytes, repl []byte, flags int) (r []byte, err error) + func (re *Regexp) ReplaceAllString(in, repl string, flags int) (string, error) + func (re *Regexp) Study(flags int) error