I'm not very good yet at regular expression. How could I do to capture only the contents present within the% excerpt of url()
?
Example:
$elemento.css('background-image'); // "url(imagem.png)"
Or else:
$element.css('background-image'); // "url(imagem.png), url(imagem2.png)"
I need to return, by pure Javascript or jQuery, the following for cases:
['imagem.png']
['imagem.png', 'imagem2.png']
How to make a regular expression to capture this?