Hello everyone I need a regex to replace everything inside de src= and /> tag on this line
src="../../../../../mailPhotos/assasins1.jpeg" alt="" width="284" height="177" /></p>
The code I'm trying for the regex is the following:
String regex="src=\"../../../../../ndeveloperDocuments/mailPhotos/assasins1.jpeg\" alt=\"\" width=\"284\" height=\"177\" /></p>";
regex=regex.replaceFirst("src./>", "src='cid:"+1001+"'");
But it's not replacing anything. What I though is that the regex would do something like "replace everything between src and />", but think I'm wrong as it doesn't work. What would be a regex to use in this case?.Thanks a lot