Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Regex ¶
type Regex interface { FindStringSubmatch(s string) []string MatchString(s string) bool String() string }
Regex interface to use regexp.Regexp and regexp2.Regexp interchangeably.
func Compile ¶
Compile compiles via standard regexp package. Upon failure, it will also attempt compilation via regexp2 package.
func MustCompile ¶
MustCompile compiles via standard regexp package. Upon failure, it will also attempt compilation via regexp2 package. Will panic, if both compilation attempts failed.
Click to show internal directories.
Click to hide internal directories.