Versions in this module Expand all Collapse all v0 v0.15.10 Jul 31, 2024 v0.15.9 Jul 31, 2024 v0.15.8 Jul 31, 2024 Changes in this version + const BreakIteration + type Code int32 + type CompileError struct + Code CompileErrorCode + Context string + Line int + Offset int + func (e *CompileError) Error() string + type CompileErrorCode int32 + const BadEscapeSequence + const BadInterval + const InternalError + const InvalidBackRef + const InvalidCaptureGroupName + const InvalidFlag + const InvalidRange + const LookBehindLimit + const MaxLtMin + const MismatchedParen + const MissingCloseBracket + const NumberTooBig + const PatternTooBig + const PropertySyntax + const RuleSyntax + const Unimplemented + type MatchError struct + Code MatchErrorCode + Input []rune + Pattern string + Position int + func (e *MatchError) Error() string + type MatchErrorCode int32 + const InternalMatchError + const StackOverflow + const TimeOut + type Matcher struct + func NewMatcher(pat *Pattern) *Matcher + func (m *Matcher) Dumper(out io.Writer) + func (m *Matcher) End() int + func (m *Matcher) EndForGroup(group int) int + func (m *Matcher) Find() (bool, error) + func (m *Matcher) Group(i int) (string, bool) + func (m *Matcher) GroupCount() int + func (m *Matcher) HitEnd() bool + func (m *Matcher) LookingAt() (bool, error) + func (m *Matcher) MatchAt(startIdx int, toEnd bool) error + func (m *Matcher) Matches() (bool, error) + func (m *Matcher) RequireEnd() bool + func (m *Matcher) Reset(input []rune) + func (m *Matcher) ResetString(input string) + func (m *Matcher) Start() int + func (m *Matcher) StartForGroup(group int) int + type Pattern struct + func Compile(in []rune, flags RegexpFlag) (*Pattern, error) + func CompileString(in string, flags RegexpFlag) (*Pattern, error) + func NewPattern(flags RegexpFlag) *Pattern + func (p *Pattern) Match(input string) *Matcher + func (pat *Pattern) Dump(w io.Writer) + type RegexpFlag int32 + const CaseInsensitive + const Comments + const DotAll + const ErrorOnUnknownEscapes + const Literal + const Multiline + const UWord + const UnixLines