Documentation ¶
Index ¶
Constants ¶
View Source
const ( RE2 = "RE2" Oniguruma = "Oniguruma" )
View Source
const Name = RE2
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnryRegexp ¶
func MustCompile ¶
func MustCompile(str string) EnryRegexp
func MustCompileMultiline ¶ added in v2.8.4
func MustCompileMultiline(s string) EnryRegexp
MustCompileMultiline mimics Ruby defaults for regexp, where ^$ matches begin/end of line. I.e. it converts Ruby regexp syntaxt to RE2 equivalent
func MustCompileRuby ¶ added in v2.8.4
func MustCompileRuby(s string) EnryRegexp
MustCompileRuby used for expressions with syntax not supported by RE2. Now it's confusing as we use the result as data/rule.Matcher and
(*Matcher)(nil) != nil
What is a better way for an expression to indicate unsupported syntax? e.g. add .IsValidSyntax() to both, Matcher interface and EnryRegexp implementations?
Click to show internal directories.
Click to hide internal directories.