MCPcopy Create free account
hub / github.com/TheLegendAli/DeepLab-Context / MatchRegexAnywhere

Function MatchRegexAnywhere

src/gtest/gtest-all.cpp:8159–8172  ·  view source on GitHub ↗

Returns true iff regex matches any substring of str. regex must be a valid simple regular expression, or the result is undefined. The algorithm is recursive, but the recursion depth doesn't exceed the regex length, so we won't need to worry about running out of stack space normally. In rare cases the time complexity can be exponential with respect to the regex length + the string length, but us

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

FullMatchMethod · 0.85
PartialMatchMethod · 0.85

Calls 1

MatchRegexAtHeadFunction · 0.85

Tested by

no test coverage detected