Regular Expressions

DescriptionExpression
URLs in stylesheets and assets
/(url\(('|"|))((.+?)\.(gif|png|jpg|jpeg|ttf|svg|woff2|woff|eot))(.*?\2\))/

$1 = opening declaration      Ex: url('
$2 = quotation style Ex: '
$3 = path with extension
$4 = path without extension
$5 = extension
$6 = closing declaration Ex: ')