MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getMatcher

Method getMatcher

test/Regex.java:9–11  ·  view source on GitHub ↗
(String regex, String string)

Source from the content-addressed store, hash-verified

7 }
8
9 private static Matcher getMatcher(String regex, String string) {
10 return Pattern.compile(regex).matcher(string);
11 }
12
13 private static void expectMatch(String regex, String string) {
14 expect(getMatcher(regex, string).matches());

Callers 4

expectMatchMethod · 0.95
expectNoMatchMethod · 0.95
expectGroupsMethod · 0.95
expectFindMethod · 0.95

Calls 2

compileMethod · 0.95
matcherMethod · 0.45

Tested by

no test coverage detected