I try get this from css files:
url(/myServer/img/mosaico.png)
and I try with this:
preg_match_all('/url\((["\']?)((?!["\']?[data:]?).*?\.(gif|png|jpg|jpeg|svg|woff|eot|ttf))\\1\)?/i', $content, $matches, PREG_SET_ORDER))
But it not works property,the expression only captures some occurrences. What is the problem?
I also need to get the parts in brackets in regular expresion, like this:
array(
(int) 0 => 'url(/img/arrow-top-white.png)',
(int) 1 => '',
(int) 2 => '/img/arrow-top-white.png',
(int) 3 => 'png'
)