Versions in this module Expand all Collapse all v1 v1.4.0 Oct 7, 2020 v1.2.1 Aug 23, 2020 Changes in this version + const RE2 v1.1.8 Jul 20, 2019 Changes in this version + const ErrUnknownSlashP + const MaxPrefixSize v1.1.4 Mar 31, 2017 v1.1.1 Oct 16, 2016 Changes in this version + const AnchorBeginning + const AnchorBol + const AnchorBoundary + const AnchorECMABoundary + const AnchorEnd + const AnchorEndZ + const AnchorEol + const AnchorStart + const Back + const Back2 + const Backjump + const Beginning + const Bol + const Boundary + const Branchcount + const Branchmark + const Capturemark + const Ci + const Compiled + const Debug + const E + const ECMABoundary + const ECMAScript + const End + const EndZ + const Eol + const ErrAlternationCantCapture + const ErrAlternationCantHaveComment + const ErrBadClassInCharRange + const ErrCapNumNotZero + const ErrCaptureGroupOutOfRange + const ErrConditionalExpression + const ErrIllegalEndEscape + const ErrIncompleteSlashP + const ErrInternalError + const ErrInvalidCharRange + const ErrInvalidGroupName + const ErrInvalidHex + const ErrInvalidRepeatOp + const ErrInvalidRepeatSize + const ErrInvalidUTF8 + const ErrMalformedNameRef + const ErrMalformedReference + const ErrMalformedSlashP + const ErrMissingBrace + const ErrMissingControl + const ErrMissingParen + const ErrMissingRepeatArgument + const ErrReversedCharRange + const ErrSubtractionMustBeLast + const ErrTooFewHex + const ErrTooManyAlternates + const ErrUndefinedBackRef + const ErrUndefinedNameRef + const ErrUndefinedReference + const ErrUnexpectedParen + const ErrUnrecognizedControl + const ErrUnrecognizedEscape + const ErrUnrecognizedGrouping + const ErrUnterminatedBracket + const ErrUnterminatedComment + const ExplicitCapture + const Forejump + const Getmark + const Goto + const IgnoreCase + const IgnorePatternWhitespace + const Lazybranch + const Lazybranchcount + const Lazybranchmark + const LowercaseAdd + const LowercaseBad + const LowercaseBor + const LowercaseSet + const Mask + const Multi + const Multiline + const NonECMABoundary + const Nonboundary + const Nothing + const Notone + const Notonelazy + const Notoneloop + const Notonerep + const Nullcount + const Nullmark + const One + const Onelazy + const Oneloop + const Onerep + const Prune + const Q + const Ref + const RightToLeft + const Rtl + const S + const Set + const Setcount + const Setjump + const Setlazy + const Setloop + const Setmark + const Setrep + const Singleline + const Start + const Stop + const Testref + const X + const Z + var AnyClass = getCharSetFromOldString([]rune{ ... }, false) + var DigitClass = getCharSetFromCategoryString(false, false, "Nd") + var ECMAAnyClass = getCharSetFromOldString([]rune{ ... }, false) + var ECMADigitClass = getCharSetFromOldString(ecmaDigit, false) + var ECMASpaceClass = getCharSetFromOldString(ecmaSpace, false) + var ECMAWordClass = getCharSetFromOldString(ecmaWord, false) + var ErrReplacementError = errors.New("Replacement pattern error.") + var NoneClass = getCharSetFromOldString(nil, false) + var NotDigitClass = getCharSetFromCategoryString(false, true, "Nd") + var NotECMADigitClass = getCharSetFromOldString(ecmaDigit, true) + var NotECMASpaceClass = getCharSetFromOldString(ecmaSpace, true) + var NotECMAWordClass = getCharSetFromOldString(ecmaWord, true) + var NotSpaceClass = getCharSetFromCategoryString(true, false, spaceCategoryText) + var NotWordClass = getCharSetFromCategoryString(true, false, wordCategoryText) + var SpaceClass = getCharSetFromCategoryString(false, false, spaceCategoryText) + var WordClass = getCharSetFromCategoryString(false, false, wordCategoryText) + func CharDescription(ch rune) string + func Escape(input string) string + func IsECMAWordChar(r rune) bool + func IsWordChar(r rune) bool + func Unescape(input string) (string, error) + type AnchorLoc int16 + func (anchors AnchorLoc) String() string + type BmPrefix struct + func (b *BmPrefix) Dump(indent string) string + func (b *BmPrefix) IsMatch(text []rune, index, beglimit, endlimit int) bool + func (b *BmPrefix) Scan(text []rune, index, beglimit, endlimit int) int + func (b *BmPrefix) String() string + type CharSet struct + func (c CharSet) CharIn(ch rune) bool + func (c CharSet) Copy() CharSet + func (c CharSet) HasSubtraction() bool + func (c CharSet) IsEmpty() bool + func (c CharSet) IsMergeable() bool + func (c CharSet) IsNegated() bool + func (c CharSet) IsSingleton() bool + func (c CharSet) IsSingletonInverse() bool + func (c CharSet) SingletonChar() rune + func (c CharSet) String() string + type Code struct + Anchors AnchorLoc + BmPrefix *BmPrefix + Caps map[int]int + Capsize int + Codes []int + FcPrefix *Prefix + RightToLeft bool + Sets []*CharSet + Strings [][]rune + TrackCount int + func Write(tree *RegexTree) (*Code, error) + func (c *Code) Dump() string + func (c *Code) OpcodeDescription(offset int) string + type Error struct + Args []interface{} + Code ErrorCode + Expr string + func (e *Error) Error() string + type ErrorCode string + func (e ErrorCode) String() string + type InstOp int + type Prefix struct + CaseInsensitive bool + PrefixSet CharSet + PrefixStr []rune + type RegexOptions int32 + type RegexTree struct + Caplist []string + Capnames map[string]int + func Parse(re string, op RegexOptions) (*RegexTree, error) + func (t *RegexTree) Dump() string + type ReplacerData struct + Rep string + Rules []int + Strings []string + func NewReplacerData(rep string, caps map[int]int, capsize int, capnames map[string]int, ...) (*ReplacerData, error)