It is valid to have white spaces between ``url(`` and the quote. So you should have ``\s*`` next to ``^`` in your regexp.