Versions in this module Expand all Collapse all v1 v1.0.0 Aug 19, 2022 v0 v0.1.8 Aug 5, 2022 v0.1.7 Aug 4, 2022 v0.1.6 Aug 4, 2022 v0.1.5 Aug 4, 2022 v0.1.4 Aug 4, 2022 v0.1.3 Aug 4, 2022 v0.1.2 Aug 3, 2022 v0.1.1 Aug 2, 2022 v0.1.0 Aug 2, 2022 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 ErrUnknownSlashP + 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 MaxPrefixSize + 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 RE2 + 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)