Versions in this module Expand all Collapse all v1 v1.0.1 Sep 11, 2023 Changes in this version + const ANCHORED + const BSR_ANYCRLF + const BSR_UNICODE + const CASELESS + const CONFIG_BSR + const CONFIG_JIT + const CONFIG_JITTARGET + const CONFIG_LINK_SIZE + const CONFIG_MATCH_LIMIT + const CONFIG_MATCH_LIMIT_RECURSION + const CONFIG_NEWLINE + const CONFIG_POSIX_MALLOC_THRESHOLD + const CONFIG_STACKRECURSE + const CONFIG_UNICODE_PROPERTIES + const CONFIG_UTF16 + const CONFIG_UTF32 + const CONFIG_UTF8 + 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_NODE + const ERROR_UNKNOWN_OPCODE + const EXTENDED + const EXTRA + const FIRSTLINE + const JAVASCRIPT_COMPAT + const MULTILINE + 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 + func Config(f int) string + func ConfigAll() string + func ParseFlags(ptr string) (string, int) + type Matcher struct + Error error + Groups int + Matches bool + Partial bool + SubjectB []byte + SubjectS string + 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) Index() []int + func (m *Matcher) MatchStringWFlags(subject string, flags int) bool + func (m *Matcher) MatchWFlags(subject []byte, flags int) bool + func (m *Matcher) Named(group string) (g []byte, err error) + func (m *Matcher) NamedPresent(group string) (pres bool) + func (m *Matcher) NamedString(group string) (g string, err error) + func (m *Matcher) Present(group int) bool + func (m *Matcher) Reset(re Regexp, subject []byte, flags int) + func (m *Matcher) ResetString(re Regexp, subject string, flags int) + type Regexp struct + func Compile(pattern string, flags int) (Regexp, error) + func CompileJIT(pattern string, flagsC, flagsS int) (Regexp, error) + func CompileParse(ptr string) (Regexp, error) + func CompileParseJIT(ptr string, flags int) (Regexp, error) + func MustCompile(pattern string, flag int) (re Regexp) + func MustCompileJIT(pattern string, flagsC, flagsS int) (re Regexp) + func MustCompileParse(pattern string) (re Regexp) + func MustCompileParseJIT(pattern string, flags int) (re Regexp) + func (re *Regexp) FindAllIndex(bytes []byte, flags int) (r [][]int) + func (re *Regexp) FindIndex(bytes []byte, flags int) []int + func (re *Regexp) FindString(s string, flags int) string + func (re *Regexp) MatchStringWFlags(subject string, flags int) bool + func (re *Regexp) MatchWFlags(subject []byte, flags int) bool + func (re Regexp) Groups() int + func (re Regexp) NewMatcher(subject []byte, flags int) *Matcher + func (re Regexp) NewMatcherString(subject string, flags int) *Matcher + func (re Regexp) ReplaceAll(bytes, repl []byte, flags int) []byte + func (re Regexp) ReplaceAllString(subj, repl string, flags int) string v1.0.0 Nov 16, 2021