日期:2014-05-18 浏览次数:20729 次
public static void main(String[] args) {
Pattern pattern = Pattern.compile("(?<=\\&\\$\\$\\$)[a-zA-Z]*(?=\\&\\$\\$\\$)");
Matcher matcher = pattern.matcher("文本框&$$$userName&$$$用户名|$$$密码框&$$$userPassword&$$$密码|$$$登录按钮&$$$http://192.168.10.249:8081/app/login/login.do&$$$登陆url");
if (matcher.find()) {
System.out.println(matcher.group());
}
}