public static List<Image> getImagesFromText(final BiConsumer<String, Image.Builder> modifier, final String ... texts) {
        final List<Image> result = new ArrayList<>();
        if (null == texts) {
            return result;
        }
        for (final String text : texts) {
            //skip null or empty texts
            if (StringUtils.isBlank(text)) {
                continue;
            }
            final Matcher m = IMG_URL.matcher(text);

            while (m.find()) {
                if (m.groupCount() >= 1) {
                    final String imgUrl = m.group(1);
                    if (StringUtils.isBlank(imgUrl)) {
                        continue;
                    }
                    final Image.Builder builder = new Image.Builder().setUrl(imgUrl, "https");
                    if (modifier != null) {
                        modifier.accept(imgUrl, builder);
                    }
                    result.add(builder.build());
                }
            }

        }
        return result;
    }
Add images present in plain text to the existing collection.

@param texts    plain texts to be searched for image URLs
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java