Documentation ¶
Overview ¶
Package regex provides helper functions for regular expression search.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Replace ¶
type Replace struct { // Regex is a regular expression used to modify the original version to generate new variants // +optional Regex string `json:"regex,omitempty"` // Replacement is the value after replacement // +optional Replacement string `json:"replacement,omitempty"` // ToLower is a flag to convert the string to lowercase ToLower bool `json:"toLower,omitempty"` // ToUpper is a flag to convert the string to uppercase ToUpper bool `json:"toUpper,omitempty"` }
Replace provides helper functions for replacing strings
func (*Replace) ReplaceAllString ¶
ReplaceAllString replace all string
type Replaces ¶
type Replaces []Replace
Replaces is a list of Replace
func (*Replaces) ReplaceAllString ¶
ReplaceAllString replace all string
Click to show internal directories.
Click to hide internal directories.