Versions in this module Expand all Collapse all v1 v1.1.7 Feb 1, 2020 Changes in this version + const RE2 v1.1.6 Jul 18, 2017 Changes in this version + const ErrUnknownSlashP + const MaxPrefixSize v1.1.5 Jul 14, 2017 v1.1.4 Mar 31, 2017 v1.1.3 Feb 19, 2017 v1.1.2 Feb 12, 2017 v1.1.1 Oct 16, 2016 Changes in this version + var ECMAAnyClass = getCharSetFromOldString([]rune{ ... }, false) + var NoneClass = getCharSetFromOldString(nil, false) v1.1.0 Aug 12, 2016 v1.0.1 Jul 30, 2016 v1.0.0 Jun 6, 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("\x00", false) + var DigitClass = getCharSetFromCategoryString(false, false, "Nd") + var ECMADigitClass = getCharSetFromOldString("\u0030\u003A", false) + var ECMASpaceClass = getCharSetFromOldString("\u0009\u000E\u0020\u0021", false) + var ECMAWordClass = getCharSetFromOldString("\u0030\u003A\u0041\u005B\u005F\u0060\u0061\u007B\u0130\u0131", false) + var ErrReplacementError = errors.New("Replacement pattern error.") + var NotDigitClass = getCharSetFromCategoryString(false, true, "Nd") + var NotECMADigitClass = getCharSetFromOldString("\u0030\u003A", true) + var NotECMASpaceClass = getCharSetFromOldString("\u0009\u000E\u0020\u0021", true) + var NotECMAWordClass = getCharSetFromOldString("\u0030\u003A\u0041\u005B\u005F\u0060\u0061\u007B\u0130\u0131", 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)