Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dlclark/regexp2
/ types & classes
Types & classes
72 in github.com/dlclark/regexp2
⨍
Functions
981
◇
Types & classes
72
↓ 9 callers
FuncType
compileOptionFunc
func(*compileConfig)
options.go:76
↓ 5 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
↓ 4 callers
TypeAlias
RegexOptions
syntax/parser.go:12
↓ 4 callers
TypeAlias
fasttime
fasttime holds a time value (ticks since clock initialization)
fastclock.go:10
↓ 1 callers
TypeAlias
AnchorLoc
syntax/prefix.go:768
↓ 1 callers
TypeAlias
NodeType
syntax/tree.go:70
↓ 1 callers
TypeAlias
singleRangeSorter
syntax/charclass.go:806
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:401
Struct
Capture
Capture is a single capture of text within the larger original string
match.go:44
Struct
Category
syntax/charclass.go:29
Struct
CharClassAnalysisResults
syntax/charclass.go:1423
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:104
Interface
CompileOption
CompileOption configures Compile and MustCompile.
options.go:64
Struct
Error
An Error describes a failure to parse a regular expression and gives the offending expression.
syntax/parser.go:52
TypeAlias
ErrorCode
An ErrorCode describes a failure to parse a regular expression.
syntax/parser.go:66
TypeAlias
FindNextStartingPositionMode
syntax/optimizations.go:109
Struct
FindOptimizations
syntax/optimizations.go:10
Struct
FixedDistanceLiteral
syntax/optimizations.go:48
Struct
FixedDistanceSet
syntax/optimizations.go:40
Struct
Group
Group is an explicit or implit (group 0) matched group within the pattern
match.go:36
Struct
LiteralAfterLoop
syntax/optimizations.go:31
Struct
Match
Match is a single regex result match that contains groups and repeated captures -Groups -Capture
match.go:13
FuncType
MatchEvaluator
MatchEvaluator is a function that takes a match and returns a replacement string to be used
replace.go:19
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:146
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:34
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:67
Struct
RequiredLandmarkAlternative
syntax/optimizations.go:74
Struct
RequiredLandmarkChain
syntax/optimizations.go:54
Struct
RuneSearchValues
helpers/searchvalues.go:77
Struct
Runner
runner.go:17
Struct
RuntimeEngineData
regexp_codegen.go:7
Struct
SingleRange
syntax/charclass.go:34
Struct
StartingLiteral
syntax/tree.go:2291
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:115
Struct
asciiBitmap
syntax/charclass.go:25
Struct
asciiSetStringScanner
stringprefixfilter.go:62
Struct
asciiStringSetPrefixFilter
stringprefixfilter.go:214
Struct
atomicTime
fastclock.go:138
Struct
benchmark
regexp_performance_test.go:382
Interface
byteRanger
regexp_test.go:256
Struct
cacheKey
regexp_codegen.go:18
Struct
compileConfig
options.go:68
Struct
d
regexp_test.go:289
Struct
emptyEngine
regexp_codegen_test.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
Struct
lcMap
syntax/charclass.go:983
Struct
matchRange
regexp_test.go:1848
Struct
matchText
match.go:54
Struct
parser
syntax/parser.go:116
Struct
pooledSliceBuffers
bufferpool.go:9
Struct
regexFc
syntax/prefix.go:259
Struct
regexFcd
syntax/prefix.go:32
Struct
regexcmpCase
regexcmp_benchmark_test.go:18
Struct
replacerDataCache
regexp.go:691
Struct
replacerDataCacheEntry
regexp.go:698
Struct
requiredLandmarkMatch
runner.go:1766
Struct
rustRegexCorpusTest
regexp_corpus_rust_test.go:40
Struct
rustRegexMatch
regexp_corpus_rust_test.go:51
Struct
stringByteMapper
regexp.go:400
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:24
Struct
writer
syntax/writer.go:38