Code example for MatchResult

Methods: group

0
				")" 
			); 
			Matcher m = p.matcher(source);
			if( m.find() ) {
				MatchResult mr = m.toMatchResult();
				emote = mr.group(0);
			} else { 
				emote = ":-)";
			} 
			return emoticonMap.get(emote);
		} 
		return emote;
	} 
 
	public static String hash(String source)
	{ 
		String hash = null;
		try { 
			MessageDigest digest = MessageDigest.getInstance("MD5");
			digest.update(source.getBytes(), 0, source.length());
Experience pair programming with AI  Get Codota for Java