I've made a regular expression for getting all background image patterns:
Pattern p = Pattern.compile("background(-image)?:[\\s]?url[\\s]*\([\\s]*(?<url>[^\)]*)[\\s]*\)[\\s]*");
But this will failed in this case, because of #66cc33
:
background:#66CC33 url(images/bg-topbar.png)
Can anyone help me to modify my pattern?