怎么样在一个字符串
<img src= " " border= " " ../> 提出src的地址
------解决方案--------------------
String regEx = " <img\\s([^> ]+\\s)?src=(\ "?)([^> "]+)\\2([/]?|\\s[^> ]*)> ";
String str = "dd <img border=\ "\ " src=\ "ddd.gif\ " /> aa ";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(str);
while (m.find()) {
System.out.println(m.group(3));
}
------解决方案--------------------
上面的[^> "] --> [^> \ "]