This is wrong. The following will match the regex: ``url(    '"'foo){"}    '"'``. You should allow spaces before the quote, not change the matching of the opening quote.