📄 findgroup.java
字号:
import java.util.regex.*;
/**
* Description:
* <br/>Copyright (C), 2005-2008, Yeeku.H.Lee
* <br/>This program is protected by copyright laws.
* <br/>Program Name:
* <br/>Date:
* @author Yeeku.H.Lee kongyeeku@163.com
* @version 1.0
*/
public class FindGroup
{
public static void main(String[] args)
{
Matcher m = Pattern.compile("\\w+")
.matcher("Java is very easy!");
while(m.find())
{
System.out.println(m.group());
}
int i = 0;
while(m.find(i))
{
System.out.print(m.group() + "\t");
i++;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -