y‰SŽÒzJavaŽ¿–⥑ ..
[2ch|¥Menu]
960:ƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñ
08/04/04 01:15:01
>>951
String s = "1111223111";
String regex="(.)\\1*([^\\\\1])";
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(s);
if(m.find()) {
int i = m.group(0).length() - 1;
System.out.println(m.group(0));
System.out.println("index is " + i);
}
‚Å‚«‚½‚Ç[


ŽŸƒy[ƒW
ÅVƒŒƒX•\ަ
ƒXƒŒƒbƒh‚ÌŒŸõ
—ÞŽ—ƒXƒŒˆê——
˜b‘è‚̃jƒ…[ƒX
‚¨‚Ü‚©‚¹ƒŠƒXƒg
¥ƒIƒvƒVƒ‡ƒ“‚ð•\ަ
‰É‚‚Ԃµ2ch

4780“ú‘O‚ÉXV/246 KB
’S“–:undef