This is my ftp:
ftp://192.168.2.4
I want to take the 192.168.2.4
What I tried
string ipAddress = FTPAddress.Substring(5,11)
that works
The problem
as you see, I set the length to 11
, however, when I change the ftp address, that 11
won't work and I would need the new ftp address length. could you help please
maybe reguralr expression?
Update
Sometimes the ftp address could be like this:
ftp://ip/folder