This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String replaceImgPattern(ImageHtmlEmail imageHtmlEmail, String html) { | |
Matcher matcher = IMG_PATTERN.matcher(html); | |
// Used to name the embedded images | |
int i = 0; | |
while (matcher.find()) { | |
// in the RegEx we have the <src> element as second "group" | |
String srcAttribute = matcher.group(2); |