JSFiddle - React, Tailwind, and code Playground
by TheFiddler
HTML
<div></div>
CSS
div{ height:53px;width:215px; background-image:url("http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif");}
JavaScript
// original code getting bg info
var name = $('div:first').css('background-image');
var patt=/\"|\'|\)/g;
alert(name.split('/').pop().replace(patt,''))