I need a regex to extract server names from below json based on the path.
So ideally I should get server1
& server2
the string between https
& /upload/image/app
as output and ignore the youtube url.
{
"url1" : "https://server1/upload/image/app/test1.jpg",
"video" : "https://www.youtube.com/watch?v=K7QaD3l1yQA",
"type" : "youtube",
"url2" : "https://server2/upload/image/app/test2.jpg"
}
Tried this, but i know this wont work:
https://(.*?)/upload/image/app