Documentation
¶
Index ¶
- Variables
- func IsMatchLock(regex, comparing string) bool
- func MatchErrorLock(regex, comparing string) error
- func New(regularExpressionSyntax string) (*regexp.Regexp, error)
- func NewLock(regularExpressionSyntax string) (*regexp.Regexp, error)
- func NewLockIf(isLock bool, regularExpressionSyntax string) (*regexp.Regexp, error)
- func NewMust(regularExpressionSyntax string) *regexp.Regexp
- func NewMustLock(regularExpressionSyntax string) *regexp.Regexp
- func NewMustLockIf(isLock bool, regularExpressionSyntax string) *regexp.Regexp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WhitespaceFinderRegex = NewMust(regconsts.AllWhitespaces) HashCommentWithSpaceOptionalRegex = NewMust(regconsts.HashCommentWithSpaceOptional) WhitespaceOrPipeFinderRegex = NewMust(regconsts.AllWhitespacesOrPipe) DollarIdentifierRegex = NewMust(regconsts.EachWordsWithDollarSymbolDefinition) PercentIdentifierRegex = NewMust(regconsts.EachWordsWithinPercentSymbolDefinition) )
Functions ¶
func IsMatchLock ¶ added in v0.7.6
IsMatchLock creates new regex using lock and then calls match if doesn't match or invalid regex then returns false.
func MatchErrorLock ¶ added in v0.7.6
MatchErrorLock creates new regex using lock and then calls match if doesn't match then returns error
func New ¶
New creates regex if not already exist in dictionary.
if any error then doesn't save to map and returns the error
func NewMustLock ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.