K
Kaffekocher
Gast
Code:
String strText = "<a href=\"http://java-forum.org\"">"
String strUrl = strText,replace("<a .* href=\">", "").replace("\" .* >")
String strText = "<a href=\"http://java-forum.org\"">"
String strUrl = strText,replace("<a .* href=\">", "").replace("\" .* >")
String strText = "<a href=\"http://java-forum.org\">";
String strUrl = strText.replace("<a href=\"", "");
strUrl = strUrl.replace("\">","");
System.out.println(strUrl); // -> [url]http://java-forum.org[/url]