JSFiddle - React, Tailwind, and code Playground

HTML

<div id="output"></div>

JavaScript

$(document).ready(function(){
    var test="some image http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=6 some image http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=6 some image http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=6";
    var re = new RegExp(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*(?:png|jpeg|jpg|gif|bmp))/ig);
    $("#output").html(test.replace(re,"<img src=\"$1\"/>"));
});