Code examples for Matcher

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
62:	if (matcher.matches()) { 
63:	dotedVersion = matcher.group(1); 
64:	major = Integer.parseInt(matcher.group(2)); 
65:	minor = Integer.parseInt(matcher.group(3)); 
66:	micro = Integer.parseInt(matcher.group(4)); 
Full Snippet Info
10
CodeRank
101:	checkArgument(versionMatcher.matches(), "Version '%s' did not match expected pattern '%s'", 
-
105:	majorVersion = Integer.parseInt(versionMatcher.group(1)); 
106:	minorVersion = Integer.parseInt(versionMatcher.group(2)); 
107:	patchVersion = Integer.parseInt(versionMatcher.group(3)); 
-
109:	String alphaOrBetaOrReleaseCandidateVersionIfPresent = versionMatcher.group(4); 
-
111:	Integer alphaOrBetaOrReleaseCandidateVersion = Integer.valueOf(versionMatcher.group(5)); 
Full Snippet Info
10
CodeRank
120:	if (!m.matches()) { 
-
124:	protocolName = m.group(1); 
125:	majorVersion = Integer.parseInt(m.group(2)); 
126:	minorVersion = Integer.parseInt(m.group(3)); 
Full Snippet Info
10
CodeRank
73:	if (matcher.find()) { 
74:	append(matcher.group(1)); 
75:	append(matcher.group(2)); 
Full Snippet Info
9
CodeRank
63:	checkArgument(matcher.matches(), "Invalid size: " + size); 
-
65:	final long count = Long.parseLong(matcher.group(1)); 
66:	final SizeUnit unit = SUFFIXES.get(matcher.group(2)); 
Full Snippet Info
9
CodeRank
41:	return matcher.group(1); 
-
45:	return VersionNumber.parse(matcher.group(2)); 
-
53:	return matcher.group(3) != null; 
Full Snippet Info
9
CodeRank
71:	if (m.matches()) 
-
73:	result = m.group(1) + "*/*" + m.group(4); 
Full Snippet Info
9
CodeRank
32:	if (matcher.matches()) { 
33:	return Play.configuration.getProperty(matcher.group(1), defaultValue); 
Full Snippet Info
9
CodeRank
54:	if (matcher.find()) { 
55:	String M = matcher.group(1); 
56:	String r = matcher.group(2); 
57:	String qc = matcher.group(3); 
58:	String m = matcher.group(4); 
59:	String qa = matcher.group(5); 
60:	String qe = matcher.group(6); 
Full Snippet Info
9
CodeRank
101:	if (ansicMatcher.find()) { 
102:	month = getMonth(ansicMatcher.group(1)); 
103:	date = getDate(ansicMatcher.group(2)); 
104:	timeOfDay = getTime(ansicMatcher.group(3)); 
105:	year = getYear(ansicMatcher.group(4)); 
Full Snippet Info
9
CodeRank
181:	if (!matcher.matches()) { 
-
185:	rect.left = Integer.parseInt(matcher.group(1)); 
186:	rect.top = Integer.parseInt(matcher.group(2)); 
187:	rect.right = Integer.parseInt(matcher.group(3)); 
188:	rect.bottom = Integer.parseInt(matcher.group(4)); 
Full Snippet Info
10
CodeRank
75:	if (matcher.find()) { 
76:	from = matcher.start(); 
77:	to = matcher.end(); 
Full Snippet Info
9
CodeRank
36:	if (matcher.matches()) { 
37:	int year = Integer.parseInt(matcher.group(1)); 
38:	int month = Integer.parseInt(matcher.group(2)); 
39:	int day = Integer.parseInt(matcher.group(3)); 
40:	int hrs = Integer.parseInt(matcher.group(4)); 
41:	int min = Integer.parseInt(matcher.group(5)); 
42:	int sec = Integer.parseInt(matcher.group(6)); 
Full Snippet Info
9
CodeRank
181:	if (!matcher.matches()) { 
-
185:	rect.left = Integer.parseInt(matcher.group(1)); 
186:	rect.top = Integer.parseInt(matcher.group(2)); 
187:	rect.right = Integer.parseInt(matcher.group(3)); 
188:	rect.bottom = Integer.parseInt(matcher.group(4)); 
Full Snippet Info
9
CodeRank
53:	if (!matcher.matches()) { 
-
56:	long qty = Long.parseLong(matcher.group(1), 10); 
57:	final String chr = matcher.group(2); 
Full Snippet Info
9
CodeRank
74:	checkArgument(matcher.matches(), "Invalid duration: " + duration); 
-
76:	final long count = Long.parseLong(matcher.group(1)); 
77:	final TimeUnit unit = SUFFIXES.get(matcher.group(2)); 
Full Snippet Info
9
CodeRank
101:	if (ansicMatcher.find()) { 
102:	month = getMonth(ansicMatcher.group(1)); 
103:	date = getDate(ansicMatcher.group(2)); 
104:	timeOfDay = getTime(ansicMatcher.group(3)); 
105:	year = getYear(ansicMatcher.group(4)); 
Full Snippet Info
9
CodeRank
30:	if (matcher.matches()) { 
Full Snippet Info
8
CodeRank
156:	String sb = matcher.group(1); 
-
162:	String str = matcher.group(2); 
Full Snippet Info
8
CodeRank
110:	if (!matcher.find()) { 
-
123:	return parseControlChar(matcher.group(1)); 
Full Snippet Info
8
CodeRank