I'm trying to modify the following string using System.Text.RegularExpressions.Regex in C#, and I need to replace /(integer)x(integer)/ with /. For example in url, I need to replace /1080x1080/ to /. How can I do this? I studied regex but I couldn't figure out how to do it.
string url = "https://scontent-icn1-1.cdninstagram.com/t51.2885-15/1080x1080/22158936_1794137857546339_3682912105310191616_n.jpg";
//The link is actually invalid because I modified it