Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VerbalExpressions/GoVerbalExpressions
/ functions
Functions
71 in github.com/VerbalExpressions/GoVerbalExpressions
⨍
Functions
71
◇
Types & classes
2
↓ 46 callers
Method
Regex
Regex returns the regular expression to use to test on string.
verbalexpressions.go:362
↓ 45 callers
Method
Find
Find seeks string. The string MUST be there (unlike Maybe() method)
verbalexpressions.go:163
↓ 42 callers
Function
New
Instanciate a new VerbalExpression. You should use this method to initalize some internal var. Example: v := verbalexpression.New().Find("foo")
verbalexpressions.go:65
↓ 16 callers
Method
add
add method, append expresions to the internal string that will be parsed
verbalexpressions.go:101
↓ 16 callers
Function
assertStringEquals
(s1, s2 string, t *testing.T)
verbalexpressions_test.go:9
↓ 11 callers
Method
Test
* proxy and helpers to regexp.Regexp functions */ Test return true if verbalexpressions matches something in string "s"
helpers.go:6
↓ 9 callers
Method
BeginCapture
Start to capture something, stop with EndCapture()
verbalexpressions.go:108
↓ 9 callers
Method
EndCapture
Stop capturing expresions parts
verbalexpressions.go:114
↓ 9 callers
Method
Multiple
Multiply string s expression Multiple(value string [, min int[, max int]]) This method accepts 1 to 3 arguments, argument 2 is min, argument 3 is ma
verbalexpressions.go:275
↓ 9 callers
Method
getFlags
append modifiers that are activated
verbalexpressions.go:87
↓ 8 callers
Function
quote
quote is an alias to regexp.QuoteMeta
verbalexpressions.go:36
↓ 7 callers
Method
Captures
Returns a slice of results from captures. If you didn't apply BeginCapture() and EndCapture(), the slices will return slice of []string where []string
helpers.go:18
↓ 7 callers
Method
Word
Word matches any word (containing alpha char)
verbalexpressions.go:244
↓ 6 callers
Method
Anything
Anything will match any char
verbalexpressions.go:120
↓ 6 callers
Method
EndOfLine
EndOfLine tells verbalexpressions to match a end of line. Warning, to check multiple line, you must use SearchOneLine(true)
verbalexpressions.go:141
↓ 5 callers
Method
Or
Or, chains an alternative VerbalExpression
verbalexpressions.go:325
↓ 5 callers
Method
SearchOneLine
SearchOneLine deactivates "multiline" mode if online argument is true Default is false
verbalexpressions.go:346
↓ 5 callers
Method
Then
Alias to Find()
verbalexpressions.go:193
↓ 5 callers
Function
tostring
utility function to return only strings
verbalexpressions.go:41
↓ 4 callers
Method
Any
Any accepts caracters to be matched
verbalexpressions.go:198
↓ 4 callers
Method
Maybe
Maybe will search string zero on more times
verbalexpressions.go:149
↓ 4 callers
Method
Range
Range accepts an even number of arguments. Each pair of values defines start and end of range. Think like this: Range(from, to [, from, to ...])
verbalexpressions.go:219
↓ 4 callers
Method
StartOfLine
StartOfLine seeks the begining of a line. As EndOfLine you should use SearchOneLine(true) to test multiple lines
verbalexpressions.go:155
↓ 4 callers
Method
WithAnyCase
WithAnyCase asks verbalexpressions to match with or without case sensitivity
verbalexpressions.go:337
↓ 4 callers
Method
addmodifier
append a modifier
verbalexpressions.go:73
↓ 4 callers
Method
removemodifier
remove a modifier
verbalexpressions.go:80
↓ 3 callers
Method
AnythingBut
AnythingBut will match anything excpeting the given string.
verbalexpressions.go:125
↓ 3 callers
Method
MatchAllWithDot
MatchAllWithDot lets VerbalExpression matching "." for everything including \n, \r, and so on
verbalexpressions.go:354
↓ 3 callers
Method
Replace
Replace alias to regexp.ReplaceAllString. It replace the found expression from string src by string dst
helpers.go:12
↓ 2 callers
Method
LineBreak
LineBreak to find "\n" or "\r\n"
verbalexpressions.go:208
↓ 2 callers
Method
StopAtFirst
(enable bool)
verbalexpressions.go:377
↓ 1 callers
Method
And
Add another VerbalExpression to the current. Usefull to concatenate several complex search patterns
verbalexpressions.go:332
↓ 1 callers
Method
AnyOf
AnyOf is an alias to Any
verbalexpressions.go:203
↓ 1 callers
Method
Br
Alias to LineBreak
verbalexpressions.go:213
↓ 1 callers
Method
Not
Not invert Find, meaning search something excepting "value". This is different than SomethingBut or AnythingBut that works with a list of caracters. N
verbalexpressions.go:174
↓ 1 callers
Method
Something
Something matches at least one char
verbalexpressions.go:130
↓ 1 callers
Method
SomethingBut
Same as Something but excepting chars given in string "s"
verbalexpressions.go:135
↓ 1 callers
Method
Tab
Tab fetch tabulation char (\t)
verbalexpressions.go:239
Function
ExampleVerbalExpression_Any
()
example_test.go:51
Function
ExampleVerbalExpression_AnythingBut
()
example_test.go:78
Function
ExampleVerbalExpression_Captures
()
example_test.go:15
Function
ExampleVerbalExpression_Find
()
example_test.go:8
Function
ExampleVerbalExpression_Or
()
example_test.go:59
Function
ExampleVerbalExpression_Range
()
example_test.go:42
Function
ExampleVerbalExpression_Replace
()
example_test.go:70
Function
TestAllWithDot
(t *testing.T)
verbalexpressions_test.go:340
Function
TestAndOrCumulate
(t *testing.T)
verbalexpressions_test.go:562
Function
TestAny
(t *testing.T)
verbalexpressions_test.go:101
Function
TestAnythingBut
(t *testing.T)
verbalexpressions_test.go:87
Function
TestCaptureSeveralTimes
(t *testing.T)
verbalexpressions_test.go:193
Function
TestCaptures
(t *testing.T)
verbalexpressions_test.go:132
Function
TestCapturingSeveralGroups
(t *testing.T)
verbalexpressions_test.go:219
Function
TestChaining
(t *testing.T)
verbalexpressions_test.go:15
Function
TestGlobalModifier
(t *testing.T)
verbalexpressions_test.go:396
Function
TestLineBreak
(t *testing.T)
verbalexpressions_test.go:464
Function
TestModifiers
(t *testing.T)
verbalexpressions_test.go:370
Function
TestMultipleMethod
(t *testing.T)
verbalexpressions_test.go:283
Function
TestNotMethod
(t *testing.T)
verbalexpressions_test.go:522
Function
TestORMethod
(t *testing.T)
verbalexpressions_test.go:259
Function
TestOneLine
(t *testing.T)
verbalexpressions_test.go:63
Function
TestPanicMultipleMethod
(t *testing.T)
verbalexpressions_test.go:312
Function
TestPanicOnRangeOddParams
(t *testing.T)
verbalexpressions_test.go:51
Function
TestRange
(t *testing.T)
verbalexpressions_test.go:33
Function
TestReplace
(t *testing.T)
verbalexpressions_test.go:118
Function
TestSeveralCaptures
(t *testing.T)
verbalexpressions_test.go:162
Function
TestSomethingMethods
(t *testing.T)
verbalexpressions_test.go:321
Function
TestStartEndWithOR
(t *testing.T)
verbalexpressions_test.go:422
Function
TestTABMethod
(t *testing.T)
verbalexpressions_test.go:481
Function
TestToString
(t *testing.T)
verbalexpressions_test.go:490
Function
TestToStringMustPanic
(t *testing.T)
verbalexpressions_test.go:509
Function
TestWithAnyCase
(t *testing.T)
verbalexpressions_test.go:360