I need a single regex to capture the relative path /image/picture/name.jpg from the below 3 similar strings. I tried many ways but there are some vulnerabilities in my regex code which is making it to work inconsistently. I couldn't find any perfect solution for this specific issue. Any help is Greatly appreciated.
- string 1 : url(/image/picture/name.jpg)
- string 2 : url("/image/picture/name.jpg")
- string 3 : url('/image/picture/name.jpg')