MCPcopy Create free account

hub / github.com/VerbalExpressions/GoVerbalExpressions / functions

Functions71 in github.com/VerbalExpressions/GoVerbalExpressions

↓ 46 callersMethodRegex
Regex returns the regular expression to use to test on string.
verbalexpressions.go:362
↓ 45 callersMethodFind
Find seeks string. The string MUST be there (unlike Maybe() method)
verbalexpressions.go:163
↓ 42 callersFunctionNew
Instanciate a new VerbalExpression. You should use this method to initalize some internal var. Example: v := verbalexpression.New().Find("foo")
verbalexpressions.go:65
↓ 16 callersMethodadd
add method, append expresions to the internal string that will be parsed
verbalexpressions.go:101
↓ 16 callersFunctionassertStringEquals
(s1, s2 string, t *testing.T)
verbalexpressions_test.go:9
↓ 11 callersMethodTest
* proxy and helpers to regexp.Regexp functions */ Test return true if verbalexpressions matches something in string "s"
helpers.go:6
↓ 9 callersMethodBeginCapture
Start to capture something, stop with EndCapture()
verbalexpressions.go:108
↓ 9 callersMethodEndCapture
Stop capturing expresions parts
verbalexpressions.go:114
↓ 9 callersMethodMultiple
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 callersMethodgetFlags
append modifiers that are activated
verbalexpressions.go:87
↓ 8 callersFunctionquote
quote is an alias to regexp.QuoteMeta
verbalexpressions.go:36
↓ 7 callersMethodCaptures
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 callersMethodWord
Word matches any word (containing alpha char)
verbalexpressions.go:244
↓ 6 callersMethodAnything
Anything will match any char
verbalexpressions.go:120
↓ 6 callersMethodEndOfLine
EndOfLine tells verbalexpressions to match a end of line. Warning, to check multiple line, you must use SearchOneLine(true)
verbalexpressions.go:141
↓ 5 callersMethodOr
Or, chains an alternative VerbalExpression
verbalexpressions.go:325
↓ 5 callersMethodSearchOneLine
SearchOneLine deactivates "multiline" mode if online argument is true Default is false
verbalexpressions.go:346
↓ 5 callersMethodThen
Alias to Find()
verbalexpressions.go:193
↓ 5 callersFunctiontostring
utility function to return only strings
verbalexpressions.go:41
↓ 4 callersMethodAny
Any accepts caracters to be matched
verbalexpressions.go:198
↓ 4 callersMethodMaybe
Maybe will search string zero on more times
verbalexpressions.go:149
↓ 4 callersMethodRange
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 callersMethodStartOfLine
StartOfLine seeks the begining of a line. As EndOfLine you should use SearchOneLine(true) to test multiple lines
verbalexpressions.go:155
↓ 4 callersMethodWithAnyCase
WithAnyCase asks verbalexpressions to match with or without case sensitivity
verbalexpressions.go:337
↓ 4 callersMethodaddmodifier
append a modifier
verbalexpressions.go:73
↓ 4 callersMethodremovemodifier
remove a modifier
verbalexpressions.go:80
↓ 3 callersMethodAnythingBut
AnythingBut will match anything excpeting the given string.
verbalexpressions.go:125
↓ 3 callersMethodMatchAllWithDot
MatchAllWithDot lets VerbalExpression matching "." for everything including \n, \r, and so on
verbalexpressions.go:354
↓ 3 callersMethodReplace
Replace alias to regexp.ReplaceAllString. It replace the found expression from string src by string dst
helpers.go:12
↓ 2 callersMethodLineBreak
LineBreak to find "\n" or "\r\n"
verbalexpressions.go:208
↓ 2 callersMethodStopAtFirst
(enable bool)
verbalexpressions.go:377
↓ 1 callersMethodAnd
Add another VerbalExpression to the current. Usefull to concatenate several complex search patterns
verbalexpressions.go:332
↓ 1 callersMethodAnyOf
AnyOf is an alias to Any
verbalexpressions.go:203
↓ 1 callersMethodBr
Alias to LineBreak
verbalexpressions.go:213
↓ 1 callersMethodNot
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 callersMethodSomething
Something matches at least one char
verbalexpressions.go:130
↓ 1 callersMethodSomethingBut
Same as Something but excepting chars given in string "s"
verbalexpressions.go:135
↓ 1 callersMethodTab
Tab fetch tabulation char (\t)
verbalexpressions.go:239
FunctionExampleVerbalExpression_Any
()
example_test.go:51
FunctionExampleVerbalExpression_AnythingBut
()
example_test.go:78
FunctionExampleVerbalExpression_Captures
()
example_test.go:15
FunctionExampleVerbalExpression_Find
()
example_test.go:8
FunctionExampleVerbalExpression_Or
()
example_test.go:59
FunctionExampleVerbalExpression_Range
()
example_test.go:42
FunctionExampleVerbalExpression_Replace
()
example_test.go:70
FunctionTestAllWithDot
(t *testing.T)
verbalexpressions_test.go:340
FunctionTestAndOrCumulate
(t *testing.T)
verbalexpressions_test.go:562
FunctionTestAny
(t *testing.T)
verbalexpressions_test.go:101
FunctionTestAnythingBut
(t *testing.T)
verbalexpressions_test.go:87
FunctionTestCaptureSeveralTimes
(t *testing.T)
verbalexpressions_test.go:193
FunctionTestCaptures
(t *testing.T)
verbalexpressions_test.go:132
FunctionTestCapturingSeveralGroups
(t *testing.T)
verbalexpressions_test.go:219
FunctionTestChaining
(t *testing.T)
verbalexpressions_test.go:15
FunctionTestGlobalModifier
(t *testing.T)
verbalexpressions_test.go:396
FunctionTestLineBreak
(t *testing.T)
verbalexpressions_test.go:464
FunctionTestModifiers
(t *testing.T)
verbalexpressions_test.go:370
FunctionTestMultipleMethod
(t *testing.T)
verbalexpressions_test.go:283
FunctionTestNotMethod
(t *testing.T)
verbalexpressions_test.go:522
FunctionTestORMethod
(t *testing.T)
verbalexpressions_test.go:259
FunctionTestOneLine
(t *testing.T)
verbalexpressions_test.go:63
FunctionTestPanicMultipleMethod
(t *testing.T)
verbalexpressions_test.go:312
FunctionTestPanicOnRangeOddParams
(t *testing.T)
verbalexpressions_test.go:51
FunctionTestRange
(t *testing.T)
verbalexpressions_test.go:33
FunctionTestReplace
(t *testing.T)
verbalexpressions_test.go:118
FunctionTestSeveralCaptures
(t *testing.T)
verbalexpressions_test.go:162
FunctionTestSomethingMethods
(t *testing.T)
verbalexpressions_test.go:321
FunctionTestStartEndWithOR
(t *testing.T)
verbalexpressions_test.go:422
FunctionTestTABMethod
(t *testing.T)
verbalexpressions_test.go:481
FunctionTestToString
(t *testing.T)
verbalexpressions_test.go:490
FunctionTestToStringMustPanic
(t *testing.T)
verbalexpressions_test.go:509
FunctionTestWithAnyCase
(t *testing.T)
verbalexpressions_test.go:360