{"modulePath":"github.com/AlaudaDevops/pkg","version":"v0.14.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package regex\n\nPackage regex provides helper functions for regular expression search.\n\n## Functions\n\n```go\nfunc Regexes(items []string) *regexes\n```\nRegexes will parse regular expression string array to regexes struct\n\n## Types\n\n```go\ntype Replace struct {\n\t// Regex is a regular expression used to modify the original version to generate new variants\n\t// +optional\n\tRegex string `json:\"regex,omitempty\"`\n\n\t// Replacement is the value after replacement\n\t// +optional\n\tReplacement string `json:\"replacement,omitempty\"`\n\n\t// ToLower is a flag to convert the string to lowercase\n\tToLower bool `json:\"toLower,omitempty\"`\n\n\t// ToUpper is a flag to convert the string to uppercase\n\tToUpper bool `json:\"toUpper,omitempty\"`\n}\n```\nReplace provides helper functions for replacing strings\n\n```go\nfunc (r *Replace) ReplaceAllString(s string) string\n```\nReplaceAllString replace all string\n\n```go\nfunc (r *Replace) Validate(fld *field.Path) (errs field.ErrorList)\n```\nValidate Replace validation method\n\n```go\ntype Replaces []Replace\n```\nReplaces is a list of Replace\n\n```go\nfunc (rs *Replaces) ReplaceAllString(s string) string\n```\nReplaceAllString replace all string\n\n```go\nfunc (r *Replaces) Validate(fld *field.Path) (errs field.ErrorList)\n```\nValidate Replaces validation method\n\n","path":"github.com/AlaudaDevops/pkg/regex","name":"regex","synopsis":"Package regex provides helper functions for regular expression search.","isRedistributable":true}
