I am trying to build a regex that captures successfully the following bolded text:
background-image: url( https://domain/adress/with/other/stuff?alsoaquerystring=whynot );
Expected output is:
https://domain/adress/with/other/stuff?alsoaquerystring=whynot
And this is what I have tried so far, but I can't manage to say "capture everything that's inside here, no matter what characters it has got".
/background-image: url\((?P<image>)+\)/;
It needs to be compatible with PHP preg_replace()
.