日期:2014-05-20  浏览次数:20734 次

java正则
158>May 7 02:28:34 tcpproxy[19476]: 220.181.124.180:43603 [07/May/2012:02:28:34.204] http-in default_server/cache2 13/0/0/6/19 404 1524 - - ---- 44/44/6/0/0 0/0 {22kk.too9.com} GET /yixuanf/index.html?sid=1699 HTTP/1.1
把这个域名匹配出来吧?


------解决方案--------------------
顺手也试验了下:

System.out.println(str.replaceAll("[^\\{]+\\{([^}]+).+", "$1"));