Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dlclark/regexp2
/ types & classes
Types & classes
96 in github.com/dlclark/regexp2
⨍
Functions
1,370
◇
Types & classes
96
↓ 9 callers
FuncType
compileOptionFunc
func(*compileConfig)
options.go:76
↓ 6 callers
TypeAlias
InstOp
similar to prog.go in the go regex package...also with comment 'may not belong in this package' File provides operator constants for use by the Builde
syntax/code.go:23
↓ 6 callers
TypeAlias
RegexOptions
syntax/parser.go:13
↓ 4 callers
TypeAlias
fasttime
fasttime holds a time value (ticks since clock initialization)
fastclock.go:10
↓ 1 callers
TypeAlias
AnchorLoc
syntax/prefix.go:771
↓ 1 callers
TypeAlias
NodeType
syntax/tree.go:70
↓ 1 callers
TypeAlias
singleRangeSorter
syntax/charclass.go:918
Struct
AsciiSearchValues
helpers/searchvalues.go:10
Struct
BmPrefix
BmPrefix precomputes the Boyer-Moore tables for fast string scanning. These tables allow you to scan for the first occurrence of a string within a lar
syntax/prefix.go:404
Struct
Capture
Capture is a single capture of text within the larger original string
match.go:48
Struct
Category
syntax/charclass.go:29
Struct
CharClassAnalysisResults
syntax/charclass.go:1562
Struct
CharSet
CharSet combines start-end rune ranges and unicode categories representing a set of characters
syntax/charclass.go:15
Struct
Code
syntax/code.go:112
Interface
CompileOption
CompileOption configures Compile and MustCompile.
options.go:64
Struct
DispatchTable
DispatchTable maps disjoint character sets to branch indices. Larger tables use a direct ASCII lookup, small tables use compact masks, and non-ASCII r
syntax/code.go:138
Struct
Error
An Error describes a failure to parse a regular expression and gives the offending expression.
syntax/parser.go:53
TypeAlias
ErrorCode
An ErrorCode describes a failure to parse a regular expression.
syntax/parser.go:67
TypeAlias
FindNextStartingPositionMode
syntax/optimizations.go:123
Struct
FindOptimizations
syntax/optimizations.go:10
Struct
FixedDistanceLiteral
syntax/optimizations.go:55
Struct
FixedDistanceSet
syntax/optimizations.go:46
Struct
Group
Group is an explicit or implit (group 0) matched group within the pattern
match.go:40
Struct
LiteralAfterLoop
syntax/optimizations.go:34
Struct
Match
Match is a single regex result match that contains groups and repeated captures -Groups -Capture
match.go:14
FuncType
MatchEvaluator
MatchEvaluator is a function that takes a match and returns a replacement string to be used
replace.go:20
Struct
MatchView
MatchView provides the capture positions of a match during FindRunesMatches. It borrows the engine's storage and is valid only until the callback retu
matchview.go:9
Interface
Matcher
Matcher is the common matching interface implemented by regexp.Regexp and this package's Regexp adapter. It includes the standard-library matching su
compat/interface.go:13
Struct
OptimizationOptions
OptimizationOptions controls runtime limits, optional caches, and compile-time fast paths. For MaxBacktrackingStackSize, negative values allow unboun
options.go:47
Struct
ParseOptions
syntax/parser.go:157
Struct
Prefix
syntax/prefix.go:11
Struct
RegexNode
It is built into a parsed tree for a regular expression. Implementation notes: Since the node tree is a temporary data structure only used during com
syntax/tree.go:58
TypeAlias
RegexOptions
RegexOptions impact the runtime and parsing behavior for each specific regex. They are setable in code as well as in the regex pattern itself.
options.go:20
Struct
RegexTree
syntax/tree.go:17
Struct
Regexp
Regexp is the representation of a compiled regular expression. A Regexp is safe for concurrent use by multiple goroutines.
regexp.go:36
Struct
Regexp
Regexp adapts a regexp2.Regexp to the matching method signatures of regexp.Regexp. The wrapped regexp2 engine can return match-time errors, most comm
compat/regexp.go:18
Struct
ReplacerData
syntax/replacerdata.go:8
Struct
RequiredLandmark
syntax/optimizations.go:80
Struct
RequiredLandmarkAlternative
syntax/optimizations.go:87
Struct
RequiredLandmarkChain
syntax/optimizations.go:62
Struct
RuneSearchValues
helpers/searchvalues.go:93
Struct
Runner
runner.go:17
Struct
RuntimeEngineData
regexp_codegen.go:7
Struct
SingleRange
syntax/charclass.go:54
Struct
StartingLiteral
syntax/tree.go:2434
FuncType
StringPrefixFilter
StringPrefixFilter optionally searches string input before the engine decodes it to runes. It returns a byte index for a candidate match start, or ok=
stringprefixfilter.go:23
Struct
StringSearchValues
helpers/searchvalues.go:134
Struct
asciiBitmap
syntax/charclass.go:25
Struct
asciiSetStringScanner
stringprefixfilter.go:75
Struct
asciiStringSetPrefixFilter
stringprefixfilter.go:247
Struct
atomicTime
fastclock.go:141
Struct
benchmark
regexp_performance_test.go:542
Interface
byteRanger
regexp_test.go:437
Struct
cacheKey
regexp_codegen.go:26
Struct
captureAlternative
syntax/parser.go:152
Struct
captureRange
matchview_test.go:163
Struct
charCategory
Keep the public Category representation and serialized form unchanged. Resolve membership data when constructing or deserializing a category so matchi
syntax/charclass.go:38
Struct
compileConfig
options.go:68
Struct
d
regexp_test.go:470
Struct
database
internal/unicodegen/main.go:53
Struct
decodedInput
decodedInput is the engine's rune view of a string. When the pattern cannot look behind a candidate start, the slice may begin at that candidate inste
decode.go:12
Struct
dispatchInfo
syntax/writer.go:73
Struct
ecmaPropertyCase
regexp_ecma_test.go:1034
Struct
emptyEngine
regexp_codegen_test.go:8
Struct
equalASCIIPrefixSearch
equalASCIIPrefixSearch searches several equal-length prefixes in parallel using one bit per character. Equal lengths ensure that the first completed p
prefixsearch.go:7
Struct
fastclock
fastclock provides a fast clock implementation. A background goroutine periodically stores the current time into an atomic variable. A deadline can
fastclock.go:24
TypeAlias
graphemeBreakClass
syntax/grapheme.go:5
Struct
graphemeForwardState
syntax/grapheme.go:77
Struct
graphemeProperties
syntax/grapheme.go:33
Struct
groupWant
regexp_test.go:366
Struct
indexCase
regexp_test.go:959
TypeAlias
indicConjunctBreakClass
syntax/grapheme.go:24
Struct
interval
internal/unicodegen/main.go:50
Struct
lcMap
syntax/charclass.go:1096
Struct
matchRange
regexp_test.go:2642
Struct
matchText
match.go:59
Struct
namedRE
regexp_pool_test.go:514
Struct
parser
syntax/parser.go:118
Struct
pooledSliceBuffers
bufferpool.go:9
TypeAlias
ranges
internal/unicodegen/main.go:51
Struct
regexFc
syntax/prefix.go:262
Struct
regexFcd
syntax/prefix.go:32
Struct
regexcmpCase
regexcmp_benchmark_test.go:18
Struct
replacerDataCache
regexp.go:716
Struct
replacerDataCacheEntry
regexp.go:723
Struct
requiredLandmarkCursor
requiredLandmarkCursor finds the cores of one landmark alternative. Calls to find and reachable must pass the same input, endAt and alternative and mu
runner.go:1920
Struct
requiredLandmarkMatch
runner.go:1814
Struct
requiredLandmarkSearch
requiredLandmarkSearch finds the cores of one landmark. Calls must pass the same input, endAt and landmark and must not decrease startAt, so each curs
runner.go:1823
Struct
requiredLandmarkState
requiredLandmarkState holds what the searches for chain's landmarks learned about one input.
runner.go:1786
Struct
rustRegexCorpusTest
regexp_corpus_rust_test.go:40
Struct
rustRegexMatch
regexp_corpus_rust_test.go:51
TypeAlias
scanMode
scanMode controls capture elision and ownership independently of text metadata.
runner.go:90
Struct
startCase
regexp_test.go:295
Struct
stringByteMapper
regexp.go:415
Struct
test262ExecCase
Test262 has hundreds of RegExp tests under test/built-ins/RegExp. These tables intentionally distill pattern-level scenarios that map to regexp2's API
regexp_ecma_test.go:29
Struct
writer
syntax/writer.go:51