Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Regex ¶
type Regex struct {
// contains filtered or unexported fields
}
func (*Regex) Gsub ¶
Returns a copy of input with the all occurrences of regex substituted with replacement. Replacement may contain numeric capture group references \1 and named capture group references \k<name>. Syntax is like Ruby's String.gsub(), see https://ruby-doc.org/core-2.1.4/String.html#method-i-gsub
func (*Regex) HasCaptureGroup ¶
type SearchResult ¶
type SearchResult struct {
// contains filtered or unexported fields
}
func (*SearchResult) Free ¶
func (m *SearchResult) Free()
func (*SearchResult) GetCaptureGroupByName ¶
func (m *SearchResult) GetCaptureGroupByName(name string) (string, error)
func (*SearchResult) GetCaptureGroupByNumber ¶
func (m *SearchResult) GetCaptureGroupByNumber(groupNum int) (string, error)
func (*SearchResult) IsMatch ¶
func (m *SearchResult) IsMatch() bool
Click to show internal directories.
Click to hide internal directories.